public static class SignatureParser.Token extends Object implements Parser.Token<SourceId,SignatureParser.TokenType>
Constructor and Description |
---|
Token(SignatureParser.TokenType type,
String text) |
Modifier and Type | Method and Description |
---|---|
Location<SourceId> |
getLocation()
Returns the source location of this token.
|
String |
getText()
Returns the text content of this token.
|
SignatureParser.TokenType |
getType()
Returns the type of this token.
|
public Token(SignatureParser.TokenType type, String text)
public Location<SourceId> getLocation()
Parser.Token
The default implementation returns null
.
getLocation
in interface Parser.Token<SourceId,SignatureParser.TokenType>
null
if
not available.public SignatureParser.TokenType getType()
Parser.Token
getType
in interface Parser.Token<SourceId,SignatureParser.TokenType>
public String getText()
Parser.Token
getText
in interface Parser.Token<SourceId,SignatureParser.TokenType>
see also the complete user documentation .