|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--clark.xpath.GeneralNode
|
+--clark.xpath.AtomicObject
This object is used to represent the atomic values: Node, Nodeset, number, boolean, String. It has two attributes: type and target. The type attribute is a short, which indicates the type of data in the target attribute. The type is needed for faster object class identification.
| Constructor Summary | |
AtomicObject(short nType,
java.lang.Object nTarget)
|
|
| 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 |
java.lang.Object |
getTarget()
Returns the target object of the class. |
short |
getType()
Returns the type of the object in the target attribute. |
void |
setTarget(java.lang.Object newTarget)
Sets a new target object to this object. |
void |
setType(short newType)
Sets a new type for the target of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AtomicObject(short nType,
java.lang.Object nTarget)
| Method Detail |
public short getType()
public short getNodeType()
getNodeType in class GeneralNodepublic java.lang.Object getTarget()
public void setType(short newType)
public void setTarget(java.lang.Object newTarget)
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 | ||||||||