net.sf.saxon.functions

Class Existence

public class Existence extends SystemFunction

Implement the exists() and empty() functions *
Field Summary
static intEMPTY
static intEXISTS
Method Summary
voidcheckArguments(StaticContext env)
Static analysis: prevent sorting of the argument
booleaneffectiveBooleanValue(XPathContext c)
Evaluate the function in a boolean context
ItemevaluateItem(XPathContext c)
Evaluate in a general context

Field Detail

EMPTY

public static final int EMPTY

EXISTS

public static final int EXISTS

Method Detail

checkArguments

public void checkArguments(StaticContext env)
Static analysis: prevent sorting of the argument

effectiveBooleanValue

public boolean effectiveBooleanValue(XPathContext c)
Evaluate the function in a boolean context

evaluateItem

public Item evaluateItem(XPathContext c)
Evaluate in a general context