net.sf.saxon.functions

Class Doc

public class Doc extends SystemFunction

Implement the fn:doc() function - a simplified form of the Document function
Field Summary
static intDOC
static intDOC_AVAILABLE
Method Summary
voidcheckArguments(StaticContext env)
intcomputeSpecialProperties()
Get the static properties of this expression (other than its type).
ItemevaluateItem(XPathContext context)
ExpressionpreEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
voidsendDocument(XPathContext context, Receiver out)
Copy the document identified by this expression to a given Receiver.

Field Detail

DOC

public static final int DOC

DOC_AVAILABLE

public static final int DOC_AVAILABLE

Method Detail

checkArguments

public void checkArguments(StaticContext env)

computeSpecialProperties

public int computeSpecialProperties()
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)

preEvaluate

public Expression preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing

sendDocument

public void sendDocument(XPathContext context, Receiver out)
Copy the document identified by this expression to a given Receiver. This method is used only when it is known that the document is being copied, because there is then no problem about node identity.