| |
|
| java.lang.Object org.apache.commons.jelly.expression.ExpressionSupport org.apache.commons.jelly.expression.CompositeExpression
CompositeExpression | public class CompositeExpression extends ExpressionSupport (Code) | | CompositeExpression is a Composite expression made up of several
Expression objects which are concatenated into a single String.
author: James Strachan version: $Revision: 155420 $ |
CompositeExpression | public CompositeExpression()(Code) | | |
CompositeExpression | public CompositeExpression(List expressions)(Code) | | |
addExpression | public void addExpression(Expression expression)(Code) | | Adds a new expression to the end of the expression list
|
addTextExpression | public void addTextExpression(String text)(Code) | | A helper method to add a new constant text expression
|
getExpressions | public List getExpressions()(Code) | | the Expression objects that make up thiscomposite expression |
parse | public static Expression parse(String text, ExpressionFactory factory) throws JellyException(Code) | | Parses the given String to be either a ConstantExpresssion, an Expression denoted as
"${foo}" or some String with embedded expresssions such as "abc${something}def${else}xyz"
which results in a CompositeExpression being returned.
Parameters: text - is the String to parse into expressions Parameters: factory - is the Factory of Expression objects used to create expresssions for the contentsof the String "foo" inside expressions such as "${foo}" the Expresssion for the given String. throws: JellyException - if the text is invalid (such as missing '}' character). throws: JellyException - if there was some problem creating the underlying Expression objectfrom the ExpressionFactory |
setExpressions | public void setExpressions(List expressions)(Code) | | Sets the Expression objects that make up this
composite expression
|
Fields inherited from org.apache.commons.jelly.expression.ExpressionSupport | final protected static Iterator EMPTY_ITERATOR(Code)(Java Doc)
|
|
|
|