com.servingxml.expr.substitution
Class IndexedSubstitutionExpression

java.lang.Object
  extended by com.servingxml.expr.substitution.SubstitutionExpr
      extended by com.servingxml.expr.substitution.IndexedSubstitutionExpression

public class IndexedSubstitutionExpression
extends SubstitutionExpr

The SubstitutionExpr implements a class that does parameter substitution in strings.


Field Summary
 
Fields inherited from class com.servingxml.expr.substitution.SubstitutionExpr
EMPTY, NULL
 
Constructor Summary
IndexedSubstitutionExpression(SubstitutionExpr expr, int index)
           
 
Method Summary
 java.lang.String evaluateAsString(Record parameters, Record record)
           
 java.lang.String[] evaluateAsStringArray(Record parameters, Record record)
           
 boolean isLiteral()
           
 boolean isNull()
           
 
Methods inherited from class com.servingxml.expr.substitution.SubstitutionExpr
parseString, parseString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedSubstitutionExpression

public IndexedSubstitutionExpression(SubstitutionExpr expr,
                                     int index)
Method Detail

evaluateAsString

public java.lang.String evaluateAsString(Record parameters,
                                         Record record)
Specified by:
evaluateAsString in class SubstitutionExpr

evaluateAsStringArray

public java.lang.String[] evaluateAsStringArray(Record parameters,
                                                Record record)
Specified by:
evaluateAsStringArray in class SubstitutionExpr

isLiteral

public boolean isLiteral()
Specified by:
isLiteral in class SubstitutionExpr

isNull

public boolean isNull()
Specified by:
isNull in class SubstitutionExpr