Modifier and Type | Field and Description |
---|---|
pack-priv static final long |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | callVisitors(ExpressionOwner
The owner of the visitor, where that path may be
rewritten if needed. owner, XPathVisitor The visitor whose appropriate method will be called. visitor)Implements com. This will traverse the heararchy, calling the visitor for each member. |
public void | checkNumberArgs(int
The number of arguments that is being passed to the function. argNum)Check that the number of arguments passed to this function is correct. |
public boolean | deepEquals(Expression
Another expression object. expr)Implements abstract com. Compare this object with another object and see if they are equal, include the sub heararchy. |
public XObject | Returns: A valid XObject.The execution current context. xctxt)Implements abstract com. Execute an XPath function object. |
public void | postCompileStep(Compiler compiler)
This function is currently only being used by Position() and Last(). |
protected void | reportWrongNumberArgs()
Constructs and throws a WrongNumberArgException with the appropriate message for this function object. |
public void | setArg(Expression
non-null expression that represents the argument. arg, int The argument number index. argNum)Set an argument expression for a function. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. |
Function | back to summary |
---|---|
public Function() |
callArgVisitors | back to summary |
---|---|
public void callArgVisitors(XPathVisitor visitor) Call the visitors for the function arguments. |
callVisitors | back to summary |
---|---|
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor) Implements com. Doc from com. This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called.
|
checkNumberArgs | back to summary |
---|---|
public void checkNumberArgs(int argNum) throws WrongNumberArgsException Check that the number of arguments passed to this function is correct. This method is meant to be overloaded by derived classes, to check for the number of arguments for a specific function type. This method is called by the compiler for static number of arguments checking.
|
deepEquals | back to summary |
---|---|
public boolean deepEquals(Expression expr) Implements abstract com. Doc from com. Compare this object with another object and see if they are equal, include the sub heararchy.
|
execute | back to summary |
---|---|
public XObject execute(XPathContext xctxt) throws TransformerException Implements abstract com. Execute an XPath function object. The function must return a valid object.
|
postCompileStep | back to summary |
---|---|
public void postCompileStep(Compiler compiler) This function is currently only being used by Position() and Last(). See respective functions for more detail. |
reportWrongNumberArgs | back to summary |
---|---|
protected void reportWrongNumberArgs() throws WrongNumberArgsException Constructs and throws a WrongNumberArgException with the appropriate message for this function object. This method is meant to be overloaded by derived classes so that the message will be as specific as possible. |
setArg | back to summary |
---|---|
public void setArg(Expression arg, int argNum) throws WrongNumberArgsException Set an argument expression for a function. This method is called by the XPath compiler.
|