Methods Summary |
---|
public void | callArgVisitors(com.sun.org.apache.xpath.internal.XPathVisitor visitor)
super.callArgVisitors(visitor);
if(null != m_arg2)
m_arg2.callVisitors(new Arg2Owner(), visitor);
|
public boolean | canTraverseOutsideSubtree()Tell if this expression or it's subexpressions can traverse outside
the current subtree.
return super.canTraverseOutsideSubtree()
? true : m_arg2.canTraverseOutsideSubtree();
|
public void | checkNumberArgs(int argNum)Check that the number of arguments passed to this function is correct.
if (argNum != 3)
reportWrongNumberArgs();
|
public boolean | deepEquals(com.sun.org.apache.xpath.internal.Expression expr)
if(!super.deepEquals(expr))
return false;
if(null != m_arg2)
{
if(null == ((Function3Args)expr).m_arg2)
return false;
if(!m_arg2.deepEquals(((Function3Args)expr).m_arg2))
return false;
}
else if (null != ((Function3Args)expr).m_arg2)
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.
super.fixupVariables(vars, globalsSize);
if(null != m_arg2)
m_arg2.fixupVariables(vars, globalsSize);
|
public com.sun.org.apache.xpath.internal.Expression | getArg2()Return the third argument passed to the function (at index 2).
return m_arg2;
|
protected void | reportWrongNumberArgs()Constructs and throws a WrongNumberArgException with the appropriate
message for this function object.
throw new WrongNumberArgsException(XSLMessages.createXPATHMessage("three", 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 (argNum < 2)
super.setArg(arg, argNum);
else if (2 == argNum)
{
m_arg2 = arg;
arg.exprSetParent(this);
}
else
reportWrongNumberArgs();
|