jd.xml.xpath.expr.function
Class StringFunction

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.StringExpression
          extended byjd.xml.xpath.expr.function.StringFunction
All Implemented Interfaces:
Expression, Function
Direct Known Subclasses:
Concat, FormatNumber, GenerateId, NodeFunction, NormalizeSpace, Substring, SubstringAfter, SubstringBefore, SystemProperty, ToString, Translate, UnparsedEntityUri

public abstract class StringFunction
extends StringExpression
implements Function

A base class for all functions which evaluate to a String.


Field Summary
protected  Expression[] 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
StringFunction()
           
 
Method Summary
 void accept(ExpressionVisitor visitor)
          Accept a ExpressionVisitor.
 Expression getArgument(int i)
          Return the actual argument for the given index.
 int getContextDependencies()
          Return a bitfield indicating the expression dependencies on the XPath context.
 void setArguments(Expression[] arguments)
          Set the function arguments.
 
Methods inherited from class jd.xml.xpath.expr.StringExpression
getResultType, toBooleanValue, 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
getFunctionType
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Field Detail

arguments_

protected Expression[] arguments_
Constructor Detail

StringFunction

public StringFunction()
Method Detail

setArguments

public void setArguments(Expression[] arguments)
Description copied from interface: Function
Set the function arguments.

Specified by:
setArguments in interface Function

getArgument

public Expression getArgument(int i)
Description copied from interface: Function
Return the actual argument for the given index.

Specified by:
getArgument in interface Function

getContextDependencies

public int getContextDependencies()
Description copied from interface: Expression
Return a bitfield indicating the expression dependencies on the XPath context.

Specified by:
getContextDependencies in interface Expression

accept

public void accept(ExpressionVisitor visitor)
Description copied from interface: Expression
Accept a ExpressionVisitor.

Specified by:
accept in interface Expression