Package | Description |
---|---|
org.apache.commons.jelly |
This package contains the main jelly API classes.
|
org.apache.commons.jelly.expression |
Implementations of the Expression classes using commons-jexl.
|
org.apache.commons.jelly.expression.jexl |
Expressions used to turn the tag attribute values into compiled
expression objects for languages such as Jexl, XPath, Velocity, beanshell, Rhino
etc.
|
org.apache.commons.jelly.expression.xpath | |
org.apache.commons.jelly.impl |
Core implementation classes for Jelly.
|
org.apache.commons.jelly.parser |
Jelly parsers both XML syntax and non-XML syntaxes are supported.
|
org.apache.commons.jelly.tags.core |
The core Tags from the JSTL plus Jelly extensions.
|
Modifier and Type | Method and Description |
---|---|
Expression |
TagLibrary.createExpression(ExpressionFactory factory,
TagScript tagScript,
String attributeName,
String attributeValue)
Allows taglibs to use their own expression evaluation mechanism
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeExpression
CompositeExpression is a Composite expression made up of several
Expression objects which are concatenated into a single String. |
class |
ConstantExpression
ConstantExpression represents a constant expression. |
class |
ExpressionSupport
ExpressionSupport
an abstract base class for Expression implementations
which provides default implementations of some of the
typesafe evaluation methods. |
Modifier and Type | Field and Description |
---|---|
static Expression |
Expression.NULL
Singleton instance that represents the expression that evaluates to null.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionFactory.createExpression(String text)
Creates a new expression for the given text
|
static Expression |
CompositeExpression.parse(String text,
ExpressionFactory factory)
Parses the given String to be either a ConstantExpression, an Expression denoted as
"${foo}" or some String with embedded expressions such as "abc${something}def${else}xyz"
which results in a CompositeExpression being returned.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeExpression.addExpression(Expression expression)
Adds a new expression to the end of the expression list
|
Modifier and Type | Class and Description |
---|---|
class |
JexlExpression
Represents a Jexl
expression which fully supports the Expression Language in JSTL and JSP
along with some extra features like object method invocation.
|
Modifier and Type | Method and Description |
---|---|
Expression |
JexlExpressionFactory.createExpression(String text) |
Modifier and Type | Class and Description |
---|---|
class |
XPathExpression
An expression which returns an XPath object.
|
Constructor and Description |
---|
XPathExpression(String text,
Expression xpathExpr,
TagScript tagScript) |
Modifier and Type | Field and Description |
---|---|
Expression |
ExpressionAttribute.exp |
Modifier and Type | Method and Description |
---|---|
protected Expression |
TagScript.getAttribute(String name)
Retrieves the expression of the given attribute name.
|
Expression |
Attribute.getDefaultValue()
Returns the defaultValue.
|
Expression |
ExpressionScript.getExpression() |
Modifier and Type | Method and Description |
---|---|
void |
TagScript.addAttribute(String name,
Expression expression)
Add an initialization attribute for the tag.
|
void |
TagScript.addAttribute(String name,
String prefix,
String nsURI,
Expression expression)
Add an initialization attribute for the tag.
|
void |
Attribute.setDefaultValue(Expression defaultValue)
Sets the defaultValue.
|
void |
ExpressionScript.setExpression(Expression expression)
Sets the expression evaluated as a String and output by this script
|
Constructor and Description |
---|
ExpressionAttribute(String name,
Expression exp) |
ExpressionAttribute(String name,
String prefix,
String nsURI,
Expression exp) |
ExpressionScript(Expression expression) |
Modifier and Type | Class and Description |
---|---|
class |
EscapingExpression
Expression that escapes output so that the text can appear in the PCDATA portion of XML. |
Modifier and Type | Method and Description |
---|---|
protected Expression |
XMLParser.createConstantExpression(String tagName,
String attributeName,
String attributeValue) |
protected Expression |
XMLParser.createEscapingExpression(Expression expression) |
Modifier and Type | Method and Description |
---|---|
protected void |
XMLParser.addExpressionScript(ScriptBlock script,
Expression expression)
Adds the given Expression object to the current Script.
|
protected Expression |
XMLParser.createEscapingExpression(Expression expression) |
Constructor and Description |
---|
EscapingExpression(Expression base) |
Modifier and Type | Method and Description |
---|---|
void |
SetTag.setDefaultValue(Expression defaultValue)
Deprecated.
Sets the default value to be used if the value exprsesion results
in a null value or blank String
|
void |
ForEachTag.setItems(Expression items)
Sets the expression used to iterate over.
|
void |
SwitchTag.setOn(Expression on)
Sets the value to switch on.
|
void |
BreakTag.setTest(Expression test)
Sets the Jelly expression to evaluate (optional).
|
void |
WhenTag.setTest(Expression test)
Sets the expression to evaluate.
|
void |
IfTag.setTest(Expression test)
Deprecated.
Sets the Jelly expression to evaluate.
|
void |
WhileTag.setTest(Expression e)
Setter for the expression
|
void |
CaseTag.setValue(Expression value) |
void |
ExprTag.setValue(Expression value)
Sets the Jexl expression to evaluate.
|
void |
SetTag.setValue(Expression value)
Deprecated.
Sets the expression to evaluate.
|
void |
RemoveTag.setVar(Expression var)
Sets the name of the variable which will be removed by this tag..
|
Copyright © 2014 Apache Software Foundation. All rights reserved.