klyn.code.java.JavaTokenizer.classifyIdentifier
method
public override classifyIdentifier(
token as String,
line as String,
endIndex as Long,
previousWord as String,
inQueryBlock as Boolean
) as TokenKind
Description

Classifies Java identifiers, promoting method names followed by ( after a type or modifier to TokenKind.DECLARATION_NAME or TokenKind.FUNCTION.

Parameters
ParameterDescription
tokenIdentifier text.
lineFull source line.
endIndexExclusive end index of token in line.
previousWordImmediately preceding word on the line.
inQueryBlockUnused in Java (false).
Returns

Resolved TokenKind.

Example
import klyn.code
import klyn.code.java

t = JavaTokenizer()
assert t.classifyIdentifier("findById", "public User findById(long id)", 20, "User", false) == TokenKind.DECLARATION_NAME