org.apache.commons.el

Class ExpressionString


public class ExpressionString
extends java.lang.Object

Represents an expression String consisting of a mixture of Strings and Expressions.
Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
Authors:
Nathan Abramson - Art Technology Group
Shawn Bayern

Field Summary

(package private) Object[]
mElements

Constructor Summary

ExpressionString(Object[] pElements)
Constructor

Method Summary

String
evaluate(VariableResolver pResolver, FunctionMapper functions, Logger pLogger)
Evaluates the expression string by evaluating each element, converting it to a String (using toString, or "" for null values) and concatenating the results into a single String.
Object[]
getElements()
String
getExpressionString()
Returns the expression in the expression language syntax
void
setElements(Object[] pElements)

Field Details

mElements

(package private)  Object[] mElements

Constructor Details

ExpressionString

public ExpressionString(Object[] pElements)
Constructor

Method Details

evaluate

public String evaluate(VariableResolver pResolver,
                       FunctionMapper functions,
                       Logger pLogger)
            throws ELException
Evaluates the expression string by evaluating each element, converting it to a String (using toString, or "" for null values) and concatenating the results into a single String.

getElements

public Object[] getElements()

getExpressionString

public String getExpressionString()
Returns the expression in the expression language syntax

setElements

public void setElements(Object[] pElements)

Copyright (c) 2001-2002 - Apache Software Foundation