| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.IfExpression
IfExpression | public class IfExpression extends ComputedExpression implements TailCallReturner(Code) | | An IfExpression returns the value of either the "then" part or the "else" part,
depending on the value of the condition
|
checkPermittedContents | public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code) | | Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. It's always OK to say yes, since the check will be
repeated at run-time. The process of checking element and attribute constructors against the content
model of a complex type also registers the type of content expected of those constructors, so the
static validation can continue recursively.
|
computeCardinality | public int computeCardinality()(Code) | | Determine the static cardinality of the result
|
computeSpecialProperties | public int computeSpecialProperties()(Code) | | Get the static properties of this expression (other than its type). The result is
bit-signficant. These properties are used for optimizations. In general, if
property bit is set, it is true, but if it is unset, the value is unknown.
|
evaluateItem | public Item evaluateItem(XPathContext context) throws XPathException(Code) | | Evaluate the conditional expression in a given context
Parameters: context - the evaluation context |
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Get data type of items in sequence returned by expression
Parameters: th - |
iterateSubExpressions | public Iterator iterateSubExpressions()(Code) | | Get the immediate subexpressions of this expression
|
markTailFunctionCalls | public boolean markTailFunctionCalls()(Code) | | Mark tail calls on used-defined functions. For most expressions, this does nothing.
|
processLeavingTail | public TailCall processLeavingTail(XPathContext context) throws XPathException(Code) | | ProcessLeavingTail: called to do the real work of this instruction. This method
must be implemented in each subclass. The results of the instruction are written
to the current Receiver, which can be obtained via the Controller.
Parameters: context - The dynamic context of the transformation, giving access to the current node,the current variables, etc. null if the instruction has completed execution; or a TailCall indicatinga function call or template call that is delegated to the caller, to be made after the stack hasbeen unwound so as to save stack space. |
suppressValidation | public void suppressValidation(int validationMode)(Code) | | Suppress validation on contained element constructors, on the grounds that the parent element
is already performing validation. The default implementation does nothing.
|
|
|