Package org.apache.tiles
Class Expression
- java.lang.Object
-
- org.apache.tiles.Expression
-
public class Expression extends java.lang.ObjectIt is an expression, along with the expression language (e.g. EL, MVEL, OGNL) it is expressed with.- Since:
- 2.2.0
- Version:
- $Rev: 788032 $ $Date: 2009-06-25 00:08:32 +1000 (Thu, 25 Jun 2009) $
-
-
Constructor Summary
Constructors Constructor Description Expression(java.lang.String expression)Constructor, using the default (i.e.Expression(java.lang.String expression, java.lang.String language)Constructor.Expression(Expression toCopy)Copy constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpressioncreateExpression(java.lang.String expression, java.lang.String language)Creates an Expression object from the expression and its language.static ExpressioncreateExpressionFromDescribedExpression(java.lang.String describedExpression)Creates an Expression object from a string in the formLANGUAGE:EXPRESSION.booleanequals(java.lang.Object obj)java.lang.StringgetExpression()Returns the expression string.java.lang.StringgetLanguage()Returns the language in which the expression is expressed.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Expression
public Expression(java.lang.String expression, java.lang.String language)Constructor.- Parameters:
expression- The expression itself.language- The language of the expression.- Since:
- 2.2.0
-
Expression
public Expression(java.lang.String expression)
Constructor, using the default (i.e.null) language.- Parameters:
expression- The expression itself.- Since:
- 2.2.0
-
Expression
public Expression(Expression toCopy)
Copy constructor.- Parameters:
toCopy- The expression to copy.- Since:
- 2.2.0
-
-
Method Detail
-
createExpressionFromDescribedExpression
public static Expression createExpressionFromDescribedExpression(java.lang.String describedExpression)
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
public static Expression createExpression(java.lang.String expression, java.lang.String language)
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
public java.lang.String getExpression()
Returns the expression string.- Returns:
- The expression itself.
- Since:
- 2.2.0
-
getLanguage
public java.lang.String getLanguage()
Returns the language in which the expression is expressed.- Returns:
- The expression language.
- Since:
- 2.2.0
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-