Class ANTLRTokenWrapper
- java.lang.Object
-
- org.palladiosimulator.editors.commons.dialogs.stoex.ANTLRTokenWrapper
-
-
Constructor Summary
Constructors Constructor Description ANTLRTokenWrapper(org.antlr.runtime.Token t, ITokenMapper myMapper)
Instantiates a new aNTLR token wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
Gets the data.org.antlr.runtime.Token
getToken()
Gets the token.boolean
isEOF()
Checks if is eof.boolean
isOther()
Checks if is other.boolean
isUndefined()
Checks if is undefined.boolean
isWhitespace()
Checks if is whitespace.void
setIsWhitespace(boolean isWhitespace)
Sets the checks if is whitespace.
-
-
-
Constructor Detail
-
ANTLRTokenWrapper
public ANTLRTokenWrapper(org.antlr.runtime.Token t, ITokenMapper myMapper)
Instantiates a new aNTLR token wrapper.- Parameters:
t
- the tmyMapper
- the my mapper
-
-
Method Detail
-
getData
public Object getData()
Gets the data.- Specified by:
getData
in interfaceIToken
- Returns:
- the data
- See Also:
IToken.getData()
-
isEOF
public boolean isEOF()
Checks if is eof.- Specified by:
isEOF
in interfaceIToken
- Returns:
- true, if is eof
- See Also:
IToken.isEOF()
-
isOther
public boolean isOther()
Checks if is other.- Specified by:
isOther
in interfaceIToken
- Returns:
- true, if is other
- See Also:
IToken.isOther()
-
isUndefined
public boolean isUndefined()
Checks if is undefined.- Specified by:
isUndefined
in interfaceIToken
- Returns:
- true, if is undefined
- See Also:
IToken.isUndefined()
-
isWhitespace
public boolean isWhitespace()
Checks if is whitespace.- Specified by:
isWhitespace
in interfaceIToken
- Returns:
- true, if is whitespace
- See Also:
IToken.isWhitespace()
-
setIsWhitespace
public void setIsWhitespace(boolean isWhitespace)
Sets the checks if is whitespace.- Parameters:
isWhitespace
- the new checks if is whitespace
-
getToken
public org.antlr.runtime.Token getToken()
Gets the token.- Returns:
- the token
-
-