com.veromodo.tempo.ast
Class ASTLiteral

java.lang.Object
  extended by com.veromodo.tempo.ast.ASTNode
      extended by com.veromodo.tempo.ast.ASTIdOrNum
          extended by com.veromodo.tempo.ast.ASTLiteral
All Implemented Interfaces:
Locatable
Direct Known Subclasses:
ASTFloatLiteral, ASTIntLiteral

public class ASTLiteral
extends ASTIdOrNum


Constructor Summary
ASTLiteral(ASTToken t)
           
 
Method Summary
 java.lang.String getLexeme()
           
 ASTToken getToken()
           
 boolean isIdentifier()
           
 java.lang.String toString()
           
 void visit(ASTIVisitor v)
          Abstract method to traverse the AST via a visitor.
 
Methods inherited from class com.veromodo.tempo.ast.ASTNode
getExtent, setExtent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTLiteral

public ASTLiteral(ASTToken t)
Method Detail

getToken

public ASTToken getToken()
Specified by:
getToken in class ASTIdOrNum

isIdentifier

public boolean isIdentifier()
Specified by:
isIdentifier in class ASTIdOrNum

getLexeme

public java.lang.String getLexeme()
Specified by:
getLexeme in class ASTIdOrNum

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

visit

public void visit(ASTIVisitor v)
Description copied from class: ASTNode
Abstract method to traverse the AST via a visitor.

Overrides:
visit in class ASTIdOrNum
Parameters:
v - the visitor interface
See Also:
ASTIVisitor