| java.lang.Object org.apache.xpath.Arg
Arg | public class Arg (Code) | | This class holds an instance of an argument on
the stack. The value of the argument can be either an
XObject or a String containing an expression.
|
Constructor Summary | |
public | Arg() Construct a dummy parameter argument, with no QName and no
value (either expression string or value XObject). | public | Arg(QName qname, String expression, boolean isFromWithParam) Construct a parameter argument that contains an expression. | public | Arg(QName qname, XObject val) Construct a parameter argument which has an XObject value. | public | Arg(QName qname, XObject val, boolean isFromWithParam) Construct a parameter argument. |
Method Summary | |
public void | detach() Have the object release it's resources. | public boolean | equals(Object obj) Equality function specialized for the variable name. | public String | getExpression() Get the value expression for this argument. | final public QName | getQName() Get the qualified name for this argument. | final public XObject | getVal() Get the value for this argument. | public boolean | isFromWithParam() Tell if this variable is a parameter passed with a with-param or as
a top-level parameter. | public boolean | isVisible() Tell if this variable is currently visible. | public void | setExpression(String expr) Set the value expression for this argument. | public void | setIsVisible(boolean b) Update visibility status of this variable. | final public void | setQName(QName name) Set the qualified name for this argument. | final public void | setVal(XObject val) Set the value of this argument. |
Arg | public Arg()(Code) | | Construct a dummy parameter argument, with no QName and no
value (either expression string or value XObject). isVisible
defaults to true.
|
Arg | public Arg(QName qname, String expression, boolean isFromWithParam)(Code) | | Construct a parameter argument that contains an expression.
Parameters: qname - Name of the argument, expressed as a QName object. Parameters: expression - String to be stored as this argument's value expression. Parameters: isFromWithParam - True if this is a parameter variable. |
Arg | public Arg(QName qname, XObject val)(Code) | | Construct a parameter argument which has an XObject value.
isVisible defaults to true.
Parameters: qname - Name of the argument, expressed as a QName object. Parameters: val - Value of the argument, expressed as an XObject |
Arg | public Arg(QName qname, XObject val, boolean isFromWithParam)(Code) | | Construct a parameter argument.
Parameters: qname - Name of the argument, expressed as a QName object. Parameters: val - Value of the argument, expressed as an XObject Parameters: isFromWithParam - True if this is a parameter variable. |
detach | public void detach()(Code) | | Have the object release it's resources.
Call only when the variable or argument is going out of scope.
|
equals | public boolean equals(Object obj)(Code) | | Equality function specialized for the variable name. If the argument
is not a qname, it will deligate to the super class.
Parameters: obj - the reference object with which to compare. true if this object is the same as the objargument; false otherwise. |
getExpression | public String getExpression()(Code) | | Get the value expression for this argument.
String containing the expression previously stored into thisargument See Also: Arg.setExpression |
getQName | final public QName getQName()(Code) | | Get the qualified name for this argument.
QName object containing the qualified name |
isFromWithParam | public boolean isFromWithParam()(Code) | | Tell if this variable is a parameter passed with a with-param or as
a top-level parameter.
|
isVisible | public boolean isVisible()(Code) | | Tell if this variable is currently visible.
|
setExpression | public void setExpression(String expr)(Code) | | Set the value expression for this argument.
Parameters: expr - String containing the expression to be stored as thisargument's value. See Also: Arg.getExpression |
setIsVisible | public void setIsVisible(boolean b)(Code) | | Update visibility status of this variable.
|
setQName | final public void setQName(QName name)(Code) | | Set the qualified name for this argument.
Parameters: name - QName object representing the new Qualified Name. |
setVal | final public void setVal(XObject val)(Code) | | Set the value of this argument.
Parameters: val - an XObject representing the arguments's value. See Also: Arg.getVal() |
|
|