Package eu.bandm.tools.d2d2.parser2
Class TLex.Token<D,T extends TLex.Displayable>
java.lang.Object
eu.bandm.tools.d2d2.parser2.TLex.Token<D,T>
- All Implemented Interfaces:
Parser.Token<D,
T>
public static class TLex.Token<D,T extends TLex.Displayable>
extends Object
implements Parser.Token<D,T>
A simple default implementation of Tokens. May be used verbatim, or derived from,
or ignored.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the source location of this token.getText()
Returns the text content of this token.getType()
Returns the type of this token.toString()
Prints an empty XML-style tag with {---- SO NICHT link display}, or thetext
contents between two tags, iff different from display.
-
Constructor Details
-
Token
-
-
Method Details
-
getLocation
Description copied from interface:eu.bandm.tools.ramus.runtime2.Parser.Token
Returns the source location of this token.The default implementation returns
null
.- Specified by:
getLocation
in interfaceParser.Token<D,
T extends TLex.Displayable> - Returns:
- the source location of this token, or
null
if not available.
-
getText
Description copied from interface:eu.bandm.tools.ramus.runtime2.Parser.Token
Returns the text content of this token.- Specified by:
getText
in interfaceParser.Token<D,
T extends TLex.Displayable> - Returns:
- the text content of this token.
-
getType
Description copied from interface:eu.bandm.tools.ramus.runtime2.Parser.Token
Returns the type of this token.- Specified by:
getType
in interfaceParser.Token<D,
T extends TLex.Displayable> - Returns:
- the type of this token.
-
toString
Prints an empty XML-style tag with {---- SO NICHT link display}, or thetext
contents between two tags, iff different from display.
-