|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--clark.xpath.GeneralNode
|
+--clark.xpath.BinaryObject
This object represents in general a binary operation, like unification, +, -, *, dev, mod, logicals: and, or. It has three attributes: type - an identifier, representing the operation. For details, see Defs class; left - a GeneralNode, representing the first operand when to it is applied eval() right - a GeneralNode, representing the second operand when to it is applied eval()
| Constructor Summary | |
BinaryObject(short newOp,
clark.xpath.GeneralNode left_,
clark.xpath.GeneralNode right_)
|
|
| 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)
Each successor class of GeneralNode has its own method eval() for its specific evaluation. |
short |
getNodeType()
Returns the operation in the node. |
short |
getReturnType()
Returns the expected return type after the evaluation |
void |
setLeftOperand(clark.xpath.GeneralNode left_)
Sets a new left operand. |
void |
setRightOperand(clark.xpath.GeneralNode right_)
Sets a new right operand. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BinaryObject(short newOp,
clark.xpath.GeneralNode left_,
clark.xpath.GeneralNode right_)
| Method Detail |
public short getNodeType()
getNodeType in class GeneralNodepublic void setLeftOperand(clark.xpath.GeneralNode left_)
public void setRightOperand(clark.xpath.GeneralNode right_)
public clark.xpath.AtomicObject eval(w3c.dom.Node context)
throws ParseException
eval in class GeneralNodeParseExceptionpublic 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 | ||||||||