clark.xpath
Class VariableObject

java.lang.Object
  |
  +--clark.xpath.GeneralNode
        |
        +--clark.xpath.VariableObject
All Implemented Interfaces:
java.io.Serializable

public class VariableObject
extends GeneralNode
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
VariableObject(java.lang.String name)
           
 
Method Summary
 boolean checkNodeListResult()
          Checks whether the instances of this class will produce a node-list with method eval()
 clark.xpath.AtomicObject eval(w3c.dom.Node context)
          The method in all successor classes of GeneralNode overides one and the same method.
 short getNodeType()
          Return the type of this object.
 short getReturnType()
          Returns the expected return type after the evaluation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableObject

public VariableObject(java.lang.String name)
Method Detail

getNodeType

public short getNodeType()
Return the type of this object. All successor classes s of GeneralNode have an unique type.

Specified by:
getNodeType in class GeneralNode

eval

public clark.xpath.AtomicObject eval(w3c.dom.Node context)
                              throws ParseException
The method in all successor classes of GeneralNode overides one and the same method. The purpose of this method is to evaluate each object without knowing its specific class. Each such a method returns an AtomicObject. In this case it returns itself.

Specified by:
eval in class GeneralNode
ParseException

checkNodeListResult

public boolean checkNodeListResult()
Description copied from class: GeneralNode
Checks whether the instances of this class will produce a node-list with method eval()

Specified by:
checkNodeListResult in class GeneralNode

getReturnType

public short getReturnType()
Description copied from class: GeneralNode
Returns the expected return type after the evaluation

Specified by:
getReturnType in class GeneralNode