|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xpath.Expression | +--org.apache.xpath.functions.Function | +--org.apache.xpath.functions.FuncCurrent | +--com.rsa.certj.xml.FunctionHere
This class defines the here()
function
for XPath evaluation. The XPath transformation
needs this function, and it is not included in the Apache XPath
toolkit.
See Also
Constructor Summary |
|
FunctionHere()
Creates an empty |
Method Summary |
|
void |
checkNumberArgs(int argNum)
Checks the number of arguments when calling
the function |
org.apache.xpath.objects.XObject |
execute(org.apache.xpath.XPathContext xpathCtxt)
Executes the function |
Methods inherited from class org.apache.xpath.functions.FuncCurrent |
fixupVariables |
Methods inherited from class org.apache.xpath.functions.Function |
callArgVisitors, callVisitors, deepEquals, postCompileStep, setArg |
Methods inherited from class org.apache.xpath.Expression |
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FunctionHere()
FunctionHere
object. It is needed
by the compiler in the XPath package.Method Detail |
public void checkNumberArgs(int argNum) throws org.apache.xpath.functions.WrongNumberArgsException
here()
. No arguments
are permitted.
If argNum is not equal to zero,
this method throws an exception.Overrides
checkNumberArgs
in class org.apache.xpath.functions.Function
Parameters
argNum | The number of arguments passed to |
Throws
org.apache.xpath.functions.WrongNumberArgsException
- If argNum
is not equal to zero.public org.apache.xpath.objects.XObject execute(org.apache.xpath.XPathContext xpathCtxt) throws javax.xml.transform.TransformerException
here()
. This
method overrides the execute()
method in FuncCurrent
.Overrides
execute
in class org.apache.xpath.functions.FuncCurrent
Parameters
xpathCtxt | An |
Returns
XObject
containing the result of
the function here()
.Throws
javax.xml.transform.TransformerException
- If an error occurs while performing
the execution.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |