net.janino
Class Scanner.Token
java.lang.Object
|
+--net.janino.Scanner.Token
- Enclosing class:
- Scanner
- public class Scanner.Token
- extends java.lang.Object
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isKeyword
public boolean isKeyword()
- Keyword token.
isKeyword
public boolean isKeyword(java.lang.String k)
isKeyword
public boolean isKeyword(java.lang.String[] ks)
getKeyword
public java.lang.String getKeyword()
isIdentifier
public boolean isIdentifier()
- Identifier token.
isIdentifier
public boolean isIdentifier(java.lang.String id)
getIdentifier
public java.lang.String getIdentifier()
isLiteral
public boolean isLiteral()
- Literal token.
isStringLiteral
public boolean isStringLiteral()
isCharacterLiteral
public boolean isCharacterLiteral()
isNumericLiteral
public boolean isNumericLiteral()
isIntegerLiteral
public boolean isIntegerLiteral()
isLongLiteral
public boolean isLongLiteral()
isFloatLiteral
public boolean isFloatLiteral()
isDoubleLiteral
public boolean isDoubleLiteral()
isBooleanLiteral
public boolean isBooleanLiteral()
isNullLiteral
public boolean isNullLiteral()
getLiteralValue
public java.lang.Object getLiteralValue()
isOperator
public boolean isOperator()
- Operator token.
isOperator
public boolean isOperator(java.lang.String o)
isOperator
public boolean isOperator(java.lang.String[] os)
getOperator
public java.lang.String getOperator()
isEOF
public boolean isEOF()
- "EOF" token.
getLocation
public Scanner.Location getLocation()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object