com.satline.expr
Class ReplaceFunctionTerm

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

public class ReplaceFunctionTerm
extends FunctionCall

This class defines a substring function term within an expression.

Author:
Teubner
See Also:
Serialized Form

Constructor Summary
ReplaceFunctionTerm()
          Default constructor.
ReplaceFunctionTerm(Expression str, Expression start)
          Construct from field values.
ReplaceFunctionTerm(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

ReplaceFunctionTerm

public ReplaceFunctionTerm()
Default constructor.


ReplaceFunctionTerm

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

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

ReplaceFunctionTerm

public ReplaceFunctionTerm(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.