Package eu.bandm.tools.ramus.runtime2
Interface Parser.Token<D,T>
- Type Parameters:
D- the type of source document identifiersT- the type of token types; typically an enum type
- All Known Implementing Classes:
Content,HonnefDemo.Token,LLJavaLexer.Token,Parser.Compile.T,Parser.Test.Token,SignatureParser.Token
public static interface Parser.Token<D,T>
Abstract interface of parser tokens.
-
Method Summary
-
Method Details
-
getLocation
Returns the source location of this token.The default implementation returns
null.- Returns:
- the source location of this token, or
nullif not available.
-
getType
T getType()Returns the type of this token.- Returns:
- the type of this token.
-
getText
String getText()Returns the text content of this token.- Returns:
- the text content of this token.
-