net.janino
Class Scanner.Token

java.lang.Object
  |
  +--net.janino.Scanner.Token
Enclosing class:
Scanner

public class Scanner.Token
extends java.lang.Object


Method Summary
 java.lang.String getIdentifier()
           
 java.lang.String getKeyword()
           
 java.lang.Object getLiteralValue()
           
 Scanner.Location getLocation()
           
 java.lang.String getOperator()
           
 boolean isBooleanLiteral()
           
 boolean isCharacterLiteral()
           
 boolean isDoubleLiteral()
           
 boolean isEOF()
          "EOF" token.
 boolean isFloatLiteral()
           
 boolean isIdentifier()
          Identifier token.
 boolean isIdentifier(java.lang.String id)
           
 boolean isIntegerLiteral()
           
 boolean isKeyword()
          Keyword token.
 boolean isKeyword(java.lang.String k)
           
 boolean isKeyword(java.lang.String[] ks)
           
 boolean isLiteral()
          Literal token.
 boolean isLongLiteral()
           
 boolean isNullLiteral()
           
 boolean isNumericLiteral()
           
 boolean isOperator()
          Operator token.
 boolean isOperator(java.lang.String o)
           
 boolean isOperator(java.lang.String[] os)
           
 boolean isStringLiteral()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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