public class Translate extends Function
staticContext
Constructor and Description |
---|
Translate() |
Modifier and Type | Method and Description |
---|---|
Value |
evaluate(Context c)
Evaluate in a general context
|
String |
evaluateAsString(Context context)
Evaluate the function in a string context
|
int |
getDataType()
Determine the data type of the expression
|
int |
getDependencies()
Get dependencies
|
String |
getName()
Get the name of the function.
|
Expression |
reduce(int dep,
Context c)
Remove dependencies
|
Expression |
simplify()
Simplfy and validate
|
addArgument, checkArgumentCount, display, getNumberOfArguments
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
public String getName()
Function
public int getDataType()
getDataType
in class Expression
public Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public String evaluateAsString(Context context) throws XPathException
evaluateAsString
in class Expression
context
- The context in which the expression is to be evaluatedXPathException
public Value evaluate(Context c) throws XPathException
evaluate
in class Expression
c
- The context in which the expression is to be evaluatedXPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dep, Context c) throws XPathException
reduce
in class Expression
dep
- The dependencies to be removed, e.g. Context.VARIABLESc
- The context to be used for the partial evaluationXPathException