org.ucl.xpath.ast
Class CastExpr
java.lang.Object
org.ucl.xpath.ast.XPathNode
org.ucl.xpath.ast.Expr
org.ucl.xpath.ast.BinExpr
org.ucl.xpath.ast.CastExpr
- public class CastExpr
- extends BinExpr
A class that creates a new value of a specific type based on an existing value.
A cast expression takes two operands: an input expression and a target type.
The type of the input expression is called the input type. The target type must
be a named atomic type, represented by a QName, optionally followed by the
occurrence indicator ? if an empty sequence is permitted. If the target type
has no namespace prefix, it is considered to be in the default element/type
namespace.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastExpr
public CastExpr(Expr l,
SingleType r)
- Constructor for CastExpr.
- Parameters:
l
- input xpath expression/variable.r
- SingleType to cast l to.
accept
public java.lang.Object accept(XPathVisitor v)
- Support for Visitor interface.
- Specified by:
accept
in class XPathNode
- Returns:
- Result of Visitor operation.