com.go.tea.parsetree
Class VariableRef

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Expression
              |
              +--com.go.tea.parsetree.VariableRef
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class VariableRef
extends Expression

VariableRef is used to reference declared Variables.

Version:
25 , 9/07/00
Author:
Brian S O'Neill
See Also:
Variable, Serialized Form

Inner classes inherited from class com.go.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
VariableRef(SourceInfo info, java.lang.String name)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 java.lang.String getName()
           
 Variable getVariable()
           
 void setVariable(Variable var)
          Setting the variable resets the VariableRef's initial type, but does not clear any type conversions.
 
Methods inherited from class com.go.tea.parsetree.Expression
clone, convertTo, convertTo, getConversionChain, getInitialType, getType, getValue, isExceptionPossible, isValueKnown, setInitialType, setType
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableRef

public VariableRef(SourceInfo info,
                   java.lang.String name)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Expression
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getName

public java.lang.String getName()

getVariable

public Variable getVariable()

setVariable

public void setVariable(Variable var)
Setting the variable resets the VariableRef's initial type, but does not clear any type conversions.