Package org.apache.tiles.api
Class Expression
java.lang.Object
org.apache.tiles.api.Expression
It is an expression, along with the expression language (e.g. EL, MVEL, OGNL)
it is expressed with.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionExpression(String expression) Constructor, using the default (i.e.Expression(String expression, String language) Constructor.Expression(Expression toCopy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressioncreateExpression(String expression, String language) Creates an Expression object from the expression and its language.static ExpressioncreateExpressionFromDescribedExpression(String describedExpression) Creates an Expression object from a string in the formLANGUAGE:EXPRESSION.booleanReturns the expression string.Returns the language in which the expression is expressed.inthashCode()toString()
-
Constructor Details
-
Expression
Constructor.- Parameters:
expression- The expression itself.language- The language of the expression.- Since:
- 2.2.0
-
Expression
Constructor, using the default (i.e.null) language.- Parameters:
expression- The expression itself.- Since:
- 2.2.0
-
Expression
Copy constructor.- Parameters:
toCopy- The expression to copy.- Since:
- 2.2.0
-
-
Method Details
-
createExpressionFromDescribedExpression
Creates an Expression object from a string in the formLANGUAGE:EXPRESSION.- Parameters:
describedExpression- The expression in the formLANGUAGE:EXPRESSION. The LANGUAGE part should be expressed only with letters and numbers.- Returns:
- The created object, or
nullif the expression is null. - Since:
- 2.2.0
-
createExpression
Creates an Expression object from the expression and its language.- Parameters:
expression- The expression itself.language- The language of the expression.- Returns:
- The created object, or
nullif the expression is null. - Since:
- 2.2.0
-
getExpression
Returns the expression string.- Returns:
- The expression itself.
- Since:
- 2.2.0
-
getLanguage
Returns the language in which the expression is expressed.- Returns:
- The expression language.
- Since:
- 2.2.0
-
equals
-
hashCode
public int hashCode() -
toString
-