com.irs.jam
Class Variable

java.lang.Object
  |
  +--com.irs.jam.Expression
        |
        +--com.irs.jam.Variable
All Implemented Interfaces:
java.io.Serializable

public class Variable
extends Expression
implements java.io.Serializable

Represents plan variables

See Also:
Serialized Form

Field Summary
protected  int _ID
           
protected  SymbolTable _symbolTable
           
 
Fields inherited from class com.irs.jam.Expression
EXP_FUNCALL, EXP_PREDICATE, EXP_UNDEFINED, EXP_VALUE, EXP_VARIABLE
 
Constructor Summary
Variable(Binding b, java.lang.String s)
           
Variable(SymbolTable t, java.lang.String s)
           
 
Method Summary
 Value eval(Binding b)
          Evaluates the expression to a single resultant
 void format(java.io.PrintStream s, Binding b)
          Output information to the stream in an in-line manner.
 int getID()
           
 java.lang.String getName()
           
 int getType()
           
 Variable getVariable()
           
protected  void init(SymbolTable t, java.lang.String s)
           
 boolean isVariable()
           
 void print(java.io.PrintStream s, Binding b)
          Output information to the stream not in an in-line manner.
 
Methods inherited from class com.irs.jam.Expression
equals, lessthan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_symbolTable

protected SymbolTable _symbolTable

_ID

protected int _ID
Constructor Detail

Variable

public Variable(SymbolTable t,
                java.lang.String s)

Variable

public Variable(Binding b,
                java.lang.String s)
Method Detail

init

protected void init(SymbolTable t,
                    java.lang.String s)

isVariable

public boolean isVariable()
Overrides:
isVariable in class Expression

getVariable

public Variable getVariable()
Overrides:
getVariable in class Expression

getID

public int getID()

getType

public int getType()
Overrides:
getType in class Expression

getName

public java.lang.String getName()
Overrides:
getName in class Expression

eval

public Value eval(Binding b)
Description copied from class: Expression
Evaluates the expression to a single resultant
Overrides:
eval in class Expression

print

public void print(java.io.PrintStream s,
                  Binding b)
Output information to the stream not in an in-line manner.
Overrides:
print in class Expression

format

public void format(java.io.PrintStream s,
                   Binding b)
Output information to the stream in an in-line manner.
Overrides:
format in class Expression