jd.xml.xpath.expr.function
Class NodeFunction

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.StringExpression
          extended byjd.xml.xpath.expr.function.StringFunction
              extended byjd.xml.xpath.expr.function.NodeFunction
All Implemented Interfaces:
Expression, Function
Direct Known Subclasses:
LocalName, Name, NamespaceUri

public abstract class NodeFunction
extends StringFunction

NodeFunction is a base class for functions which use the first node of the node-set argument or the context node to calculate their string result.


Field Summary
 
Fields inherited from class jd.xml.xpath.expr.function.StringFunction
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
NodeFunction()
           
 
Method Summary
 String toStringValue(XPathContext context)
          Evaluate the Expression to a String.
protected abstract  String toStringValue(XPathContext context, XPathNode node)
           
 
Methods inherited from class jd.xml.xpath.expr.function.StringFunction
accept, getArgument, getContextDependencies, setArguments
 
Methods inherited from class jd.xml.xpath.expr.StringExpression
getResultType, toBooleanValue, toNumberValue, 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
getFunctionType
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toNumberValue, toString, toXObject
 

Constructor Detail

NodeFunction

public NodeFunction()
Method Detail

toStringValue

public String toStringValue(XPathContext context)
Description copied from interface: Expression
Evaluate the Expression to a String.

Specified by:
toStringValue in interface Expression
Specified by:
toStringValue in class StringExpression

toStringValue

protected abstract String toStringValue(XPathContext context,
                                        XPathNode node)