Methods Summary |
---|
public void | callArgVisitors(com.sun.org.apache.xpath.internal.XPathVisitor visitor)
if(null != m_arg0)
m_arg0.callVisitors(this, visitor);
|
public boolean | canTraverseOutsideSubtree()Tell if this expression or it's subexpressions can traverse outside
the current subtree.
return m_arg0.canTraverseOutsideSubtree();
|
public void | checkNumberArgs(int argNum)Check that the number of arguments passed to this function is correct.
if (argNum != 1)
reportWrongNumberArgs();
|
public boolean | deepEquals(com.sun.org.apache.xpath.internal.Expression expr)
if(!super.deepEquals(expr))
return false;
if(null != m_arg0)
{
if(null == ((FunctionOneArg)expr).m_arg0)
return false;
if(!m_arg0.deepEquals(((FunctionOneArg)expr).m_arg0))
return false;
}
else if(null != ((FunctionOneArg)expr).m_arg0)
return false;
return true;
|
public void | fixupVariables(java.util.Vector vars, int globalsSize)This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
if(null != m_arg0)
m_arg0.fixupVariables(vars, globalsSize);
|
public com.sun.org.apache.xpath.internal.Expression | getArg0()Return the first argument passed to the function (at index 0).
return m_arg0;
|
public com.sun.org.apache.xpath.internal.Expression | getExpression()
return m_arg0;
|
protected void | reportWrongNumberArgs()Constructs and throws a WrongNumberArgException with the appropriate
message for this function object.
throw new WrongNumberArgsException(XSLMessages.createXPATHMessage("one", null));
|
public void | setArg(com.sun.org.apache.xpath.internal.Expression arg, int argNum)Set an argument expression for a function. This method is called by the
XPath compiler.
if (0 == argNum)
{
m_arg0 = arg;
arg.exprSetParent(this);
}
else
reportWrongNumberArgs();
|
public void | setExpression(com.sun.org.apache.xpath.internal.Expression exp)
exp.exprSetParent(this);
m_arg0 = exp;
|