public final class AttributeValueTemplate extends Expression
staticContext| Modifier and Type | Method and Description |
|---|---|
void |
display(int level)
Diagnostic print of expression structure
|
Value |
evaluate(Context context)
Evaluate an AVT.
|
java.lang.String |
evaluateAsString(Context context)
Evaluate an expression as a String.
|
int |
getDataType()
Determine the data type of the expression, if possible
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
static Expression |
make(java.lang.String avt,
StaticContext env)
Static factory method to create an AVT from an XSL string representation
|
Expression |
reduce(int dependencies,
Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
|
Expression |
simplify()
Simplify an expression.
|
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, getStaticContext, indent, isContextDocumentNodeSet, outputStringValue, setStaticContext, usesCurrentpublic static Expression make(java.lang.String avt, StaticContext env) throws XPathException
XPathExceptionpublic Expression simplify() throws XPathException
simplify in class ExpressionXPathExceptionpublic Value evaluate(Context context) throws XPathException
evaluate in class Expressioncontext - The context in which the AVT is to be evaluatedXPathExceptionpublic int getDataType()
getDataType in class Expressionpublic java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString in class Expressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic int getDependencies()
getDependencies in class Expressionpublic Expression reduce(int dependencies, Context context) throws XPathException
reduce in class Expressiondependencies - The dependencies to be removedcontext - The context to be used for the partial evaluationXPathExceptionpublic void display(int level)
display in class Expression