com.evelopers.unimod.parser
Class ConstNode

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended bycom.evelopers.unimod.parser.ConstNode
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable

public class ConstNode
extends antlr.CommonAST

AST node for numeric constant

See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.CommonAST
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
ConstNode()
          Does nothing.
ConstNode(antlr.Token t)
          Creates const for given token.
 
Method Summary
 int getValue()
          Returns const int value.
 void setText(java.lang.String text)
          Assigns value of constant.
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, initialize, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstNode

public ConstNode()
Does nothing. Used for duplicating.


ConstNode

public ConstNode(antlr.Token t)
Creates const for given token.

Parameters:
t - token
Method Detail

setText

public void setText(java.lang.String text)
Assigns value of constant.

Parameters:
text - string presentation of constant value

getValue

public int getValue()
Returns const int value. Called by Interpreter.

Returns:
const int value