common-util

local.tomas.expr
Class SubstrFunctionTerm

java.lang.Object
  extended by local.tomas.expr.FunctionCall
      extended by local.tomas.expr.SubstrFunctionTerm
All Implemented Interfaces:
Serializable, Expression

public class SubstrFunctionTerm
extends FunctionCall
implements Expression

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 local.tomas.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
Description copied from interface: Expression
Handle visit of ExpressionWalker.

Specified by:
greet in interface Expression
Parameters:
visitor - the ExpressionWalker visiting this object
arg - implementation dependent argument
Returns:
implementation dependent result
Throws:
ExpressionException

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.