| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.UnaryExpression net.sf.saxon.expr.CastExpression
CastExpression | final public class CastExpression extends UnaryExpression (Code) | | Cast Expression: implements "cast as data-type ( expression )". It also allows an internal
cast, which has the same semantics as a user-requested cast, but maps an empty sequence to
an empty sequence.
|
addAllowedCasts | static void addAllowedCasts(int source, int[] target)(Code) | | |
computeCardinality | public int computeCardinality()(Code) | | Get the static cardinality of the expression
|
displayOperator | protected String displayOperator(NamePool pool)(Code) | | Give a string representation of the operator for use in diagnostics
the operator, as a string |
equals | public boolean equals(Object other)(Code) | | Is this expression the same as another expression?
|
isPossibleCast | public static boolean isPossibleCast(int source, int target)(Code) | | Determine whether casting from a source type to a target type is possible
Parameters: source - a primitive type (one that has an entry in the casting table) Parameters: target - another primitive type true if the entry in the casting table is either "Y" (casting always succeeds)or "M" (casting allowed but may fail for some values) |
|
|