de.fzi.XPath
Class Variable

java.lang.Object
  |
  +--de.fzi.XPath.Expr
        |
        +--de.fzi.XPath.Variable

public class Variable
extends Expr

This class represents a variable.


Fields inherited from class de.fzi.XPath.Expr
ADD_OP, AND_OP, DIV_OP, EQ_OP, GT_OP, GTE_OP, LT_OP, LTE_OP, MOD_OP, MUL_OP, NEQ_OP, NOP_OP, OR_OP, SUB_OP, U_OP
 
Constructor Summary
Variable(java.lang.String thename)
          Intantiates a variable with given name.
 
Method Summary
 java.lang.String getName()
          Returns the name of this variable.
 java.lang.String toString()
          Returns string representation of this variable.
 
Methods inherited from class de.fzi.XPath.Expr
getNegative, getOperator, getOperatorAsString, getOperatorName, getPositive, setOperator, setPositive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String thename)
Intantiates a variable with given name.
Parameters:
thename - name of the variable.
Method Detail

toString

public java.lang.String toString()
Returns string representation of this variable.
Overrides:
toString in class Expr
Returns:
Returns string representation of this variable which is "$" plus variable name, for example "$foo".

getName

public java.lang.String getName()
Returns the name of this variable.
Returns:
Returns the name of this variable. The name does not include "$" sign.