net.sf.saxon.functions

Class Lang

public class Lang extends SystemFunction

Method Summary
ItemevaluateItem(XPathContext c)
Evaluate in a general context
intgetIntrinsicDependencies()
Determine the dependencies
static booleanisLang(String arglang, NodeInfo target)
Test whether the context node has the given language attribute
ExpressionpreEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
ExpressiontypeCheck(ExpressionVisitor visitor, ItemType contextItemType)

Method Detail

evaluateItem

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

getIntrinsicDependencies

public int getIntrinsicDependencies()
Determine the dependencies

isLang

public static boolean isLang(String arglang, NodeInfo target)
Test whether the context node has the given language attribute

Parameters: arglang the language being tested target the target node

preEvaluate

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

Parameters: visitor an expression visitor

typeCheck

public Expression typeCheck(ExpressionVisitor visitor, ItemType contextItemType)