jd.xml.xslt.expr
Class Available

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.BooleanExpression
          extended byjd.xml.xpath.expr.function.BooleanFunction
              extended byjd.xml.xslt.expr.Available
All Implemented Interfaces:
Expression, Function, XsltFunction
Direct Known Subclasses:
ElementAvailable, FunctionAvailable

public abstract class Available
extends BooleanFunction
implements XsltFunction

Available is a base class for ElementAvailable and FunctionAvailable


Field Summary
 
Fields inherited from class jd.xml.xpath.expr.function.BooleanFunction
arguments_
 
Fields inherited from interface jd.xml.xpath.expr.function.Function
NULL_ARGUMENTS
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
Available()
           
 
Method Summary
abstract  boolean available(ExtensionHandler handler, String name)
           
abstract  boolean available(XPathContext context, String uri, String name)
           
 void copyContextParameters(Function function)
           
 int getContextDependencies()
          Return a bitfield indicating the function dependencies.
 NamespaceContext getNamespaceContext()
           
 void initContextParameters(StaticExprContext context)
          Set function parameters provided by the given expression context.
 boolean toBooleanValue(XPathContext context)
          Evaluate the function.
 
Methods inherited from class jd.xml.xpath.expr.function.BooleanFunction
accept, getArgument, setArguments
 
Methods inherited from class jd.xml.xpath.expr.BooleanExpression
getResultType, toNumberValue, toStringValue, toXObject
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.expr.function.Function
getArgument, getFunctionType, setArguments
 
Methods inherited from interface jd.xml.xpath.expr.Expression
accept, getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Constructor Detail

Available

public Available()
Method Detail

initContextParameters

public void initContextParameters(StaticExprContext context)
Set function parameters provided by the given expression context.

Specified by:
initContextParameters in interface XsltFunction

copyContextParameters

public void copyContextParameters(Function function)
Specified by:
copyContextParameters in interface XsltFunction

getNamespaceContext

public NamespaceContext getNamespaceContext()

getContextDependencies

public int getContextDependencies()
Return a bitfield indicating the function dependencies.

Specified by:
getContextDependencies in interface Expression
Overrides:
getContextDependencies in class BooleanFunction

toBooleanValue

public boolean toBooleanValue(XPathContext context)
Evaluate the function.

Specified by:
toBooleanValue in interface Expression
Specified by:
toBooleanValue in class BooleanExpression

available

public abstract boolean available(XPathContext context,
                                  String uri,
                                  String name)

available

public abstract boolean available(ExtensionHandler handler,
                                  String name)