Class Expression
- java.lang.Object
-
- org.eclipse.birt.report.model.api.Expression
-
public class Expression extends java.lang.Object
Represents the object for the expression. The expression has an expression value and its type.- See Also:
ExpressionType
-
-
Constructor Summary
Constructors Constructor Description Expression(java.lang.Object expr, java.lang.String type)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Object
getExpression()
Return the raw expression if the type is not constant.java.lang.String
getStringExpression()
Return the raw expression if the type is not constant.java.lang.String
getType()
Return the type of the expression.java.lang.String
getUserDefinedType()
Return the type of the expression set by the user.java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getStringExpression
public java.lang.String getStringExpression()
Return the raw expression if the type is not constant. If the type is constant, get the value in string.- Returns:
- the raw expression or the value in string
-
getExpression
public java.lang.Object getExpression()
Return the raw expression if the type is not constant. If the type is constant, get the value.- Returns:
- the raw expression or the value
-
getType
public java.lang.String getType()
Return the type of the expression. It can be one of defined inExpressionType
. For the compatibility issue, in default, it isExpressionType.JAVASCRIPT
.- Returns:
- the type
- See Also:
ExpressionType
-
getUserDefinedType
public java.lang.String getUserDefinedType()
Return the type of the expression set by the user. This method ignore the compatibility issue.- Returns:
- the type
- See Also:
ExpressionType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-