org.hava.engine
Class HReference

java.lang.Object
  extended by org.hava.engine.HValue
      extended by org.hava.engine.HReference
Direct Known Subclasses:
HDocComment

public class HReference
extends HValue

Label associated with an assigned value, for example, "pi" or "f(x, y)". It consists of the variable identifier (a String), along with an index (an inherited HValue of type list), which may be empty.


Field Summary
 
Fields inherited from class org.hava.engine.HValue
BLANK, BOOLEAN, EMPTYLIST, ERROR, FALSE, IGNORE, INTEGER, LIST, ONE, REAL, STRUCTURE, TOKEN, TRUE, TWO, ZERO
 
Method Summary
 java.lang.String getIdentifier()
          Returns the variable identifier.
 java.lang.String getImportIdentifier()
          Returns the name of the import file where this variable is defined.
 HValue getValue()
          Returns the value assigned to this variable reference.
 boolean isOverridden()
          Returns true if this variable reference is overridden.
 boolean isTable()
          Returns true if this variable reference was defined with a table prefix.
 java.lang.String toString()
          Provides a representation of this variable reference in the same format that appears in the demo report.
 
Methods inherited from class org.hava.engine.HValue
booleanValue, compareDefinitionRank, doubleValue, equals, getElement, getNumElements, getParameters, getType, hashCode, intValue, isBoolean, isCompound, isDouble, isIndex, isInteger, isList, isNumerical, isStructure, isToken, structField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getIdentifier

public java.lang.String getIdentifier()
Returns the variable identifier. For example, the variable reference f(1, 2) has identifier "f".


getImportIdentifier

public java.lang.String getImportIdentifier()
Returns the name of the import file where this variable is defined.


getValue

public HValue getValue()
Returns the value assigned to this variable reference.


isOverridden

public boolean isOverridden()
Returns true if this variable reference is overridden.


isTable

public boolean isTable()
Returns true if this variable reference was defined with a table prefix.


toString

public java.lang.String toString()
Provides a representation of this variable reference in the same format that appears in the demo report. For example, the variable reference f(1, 2) has string representation "f(1, 2)".

Overrides:
toString in class HValue