|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--clark.xpath.GeneralNode
|
+--clark.xpath.AxisObject
The AxisObject is used to represent the Step in the tree of the compiled xpath. The class extends General Node. Holds information about the axis name, node test amd predicates. Holds information also on the next step.
| Constructor Summary | |
AxisObject()
|
|
AxisObject(short axisOp_,
clark.xpath.NodeTest nodetest_,
java.util.LinkedList pred_,
clark.xpath.AxisObject next)
The main constructor. |
|
AxisObject(java.lang.String varName,
clark.xpath.AxisObject next)
Constructor used ONLY for Variable Axis nodes. |
|
| 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)
Extesnsion of General Node. |
short |
getAxisOp()
Returns the axis name. |
static int |
getContextSize()
Returns the context size. |
clark.xpath.NodeTest |
getNodeTest()
Returns the node test. |
short |
getNodeType()
Returns the type of the object. |
static int |
getProximityPosition()
Returns the proximity position. |
short |
getReturnType()
Returns the expected return type after the evaluation |
void |
setAxisOp(short axisOp_)
Sets the Axis Name. |
void |
setNextAxis(clark.xpath.AxisObject next_)
Sets the next Step. |
void |
setNodeTest(clark.xpath.NodeTest nodeTest_)
Sets the node test. |
void |
setPredicates(java.util.LinkedList predicates_)
Sets the Predicates. |
static void |
setUsesContext()
Used for optimization in predicate evaluation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AxisObject(short axisOp_,
clark.xpath.NodeTest nodetest_,
java.util.LinkedList pred_,
clark.xpath.AxisObject next)
axisOp_ - The index of the Axis Name in Defs.nodetest_ - Holding information about node test.pred_ - LinkedList from compiled predicates.
public AxisObject(java.lang.String varName,
clark.xpath.AxisObject next)
public AxisObject()
| Method Detail |
public void setNextAxis(clark.xpath.AxisObject next_)
next_ - Next Step.public void setAxisOp(short axisOp_)
axisOp_ - Axis name - index in Defs..public void setPredicates(java.util.LinkedList predicates_)
public void setNodeTest(clark.xpath.NodeTest nodeTest_)
public short getAxisOp()
public short getNodeType()
getNodeType in class GeneralNodepublic clark.xpath.NodeTest getNodeTest()
public static int getContextSize()
public static int getProximityPosition()
public static void setUsesContext()
public clark.xpath.AtomicObject eval(w3c.dom.Node context)
throws ParseException
eval in class GeneralNodecontext - the context node.
ParseExceptionpublic boolean checkNodeListResult()
GeneralNode
checkNodeListResult in class GeneralNodepublic short getReturnType()
GeneralNode
getReturnType in class GeneralNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||