|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.UnaryExpr
This class implements the XPath 'UnaryExpr' functionality. The evaluation causes the lhs and rhs expressions to be evaluated and the results added as numbers. The result is of type NumberValue
Constructor Summary | |
UnaryExpr(Expression operand)
Construct an addition AdditiveExpr expression |
Method Summary | |
void |
dump(PrintWriter writer,
int indent)
Print the expression in a readable form for debugging. |
ExpressionValue |
evaluate(Node contextNode,
ExpressionContext context)
Evaluate the expression with repect to the passed context |
Class |
getResultType()
Return the Class object describing the result type of the expression. |
boolean |
isConstant()
Return true if the expression is a constant value. |
void |
registerForReset(XPathResetRegistrar registrar)
Register this expression or any subexpression that implements XPathResetCache with an object that wants to call resetCache() |
String |
toString()
Provide a readable description for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnaryExpr(Expression operand)
operand
- the expression operandMethod Detail |
public String toString()
public ExpressionValue evaluate(Node contextNode, ExpressionContext context) throws XPathEvaluationException
evaluate
in interface Expression
contextNode
- context node for expression evaluationcontext
- expression context for expression evaluation
XPathEvaluationException
public boolean isConstant()
isConstant
in interface Expression
public void dump(PrintWriter writer, int indent)
dump
in interface Expression
writer
- The output device.indent
- Number of tabs to indent the result.public Class getResultType()
getResultType
in interface Expression
public void registerForReset(XPathResetRegistrar registrar)
resetCache()
registerForReset
in interface Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |