|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.parser.AVT
A string expression used for an AttributeValueTemplate
| Constructor Summary | |
protected |
AVT(Expression[] operands)
Constructs a new AttributeValueTemplate with the specified operands. |
| 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 |
Expression[] |
getOperands()
Returns this expression's operands. |
Class |
getResultType()
Return the Class object describing the result type of the expression. |
boolean |
isConstant()
Return true if the expression is a constant value. |
static Expression |
parse(String source,
Parser xpathParser,
ErrorHandler errorHandler)
Parse a string an as AttributeValueTemplate and return an Expression the implements the template. |
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 |
protected AVT(Expression[] operands)
operands - the expressions to be concatenated| Method Detail |
public static Expression parse(String source,
Parser xpathParser,
ErrorHandler errorHandler)
throws XPathParserException
source - The string to be parsed.xpathParser - The XPath expression parser to use for parsing the
expressions.
XPathParserExceptionpublic Expression[] getOperands()
public String toString()
public ExpressionValue evaluate(Node contextNode,
ExpressionContext context)
throws XPathEvaluationException
evaluate in interface ExpressioncontextNode - context node for expression evaluationcontext - expression context for expression evaluation
XPathEvaluationExceptionpublic boolean isConstant()
isConstant in interface Expressionpublic Class getResultType()
getResultType in interface Expressionpublic void registerForReset(XPathResetRegistrar registrar)
resetCache()
registerForReset in interface Expression
public void dump(PrintWriter writer,
int indent)
dump in interface Expressionwriter - The output device.indent - Number of tabs to indent the result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||