com.satline.expr
Class SubstrFunctionTerm

java.lang.Object
  extended by com.satline.expr.FunctionCall
      extended by com.satline.expr.SubstrFunctionTerm
All Implemented Interfaces:
Expression, java.io.Serializable

public class SubstrFunctionTerm
extends FunctionCall

This class defines a substring function term within an expression.

Author:
Teubner
See Also:
Serialized Form

Constructor Summary
SubstrFunctionTerm()
          Default constructor.
SubstrFunctionTerm(Expression str, Expression start)
          Construct from field values.
SubstrFunctionTerm(Expression str, Expression start, Expression length)
          Construct from field values.
 
Method Summary
<E,F> E
greet(ExpressionWalker<E,F> visitor, F arg)
          Handle visit of ExpressionWalker.
 
Methods inherited from class com.satline.expr.FunctionCall
addArgument, equals, getArguments, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstrFunctionTerm

public SubstrFunctionTerm()
Default constructor.


SubstrFunctionTerm

public SubstrFunctionTerm(Expression str,
                          Expression start)
Construct from field values.

Parameters:
str - the string
start - starting position
length - length of substring

SubstrFunctionTerm

public SubstrFunctionTerm(Expression str,
                          Expression start,
                          Expression length)
Construct from field values.

Parameters:
str - the string
start - starting position
length - length of substring
Method Detail

greet

public <E,F> E greet(ExpressionWalker<E,F> visitor,
                     F arg)
        throws ExpressionException
Handle visit of ExpressionWalker.

Parameters:
visitor - - the ExpressionWalker visiting this object
arg - - implementation dependent argument
Returns:
implementation dependent value
Throws:
ExpressionException


Copyright © 2007 null. All Rights Reserved.