Interface IExpression
-
public interface IExpression
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetExpression()Return the raw expression if the type is not constant.java.lang.StringgetType()Return the type of the expression.IExpressionTypegetTypes()Returns the object represents all possible expression types.voidsetExpression(java.lang.Object expr)Sets the raw expression if the type is not constant.voidsetType(java.lang.String type)Sets the type of the expression.
-
-
-
Method Detail
-
getExpression
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
-
setExpression
void setExpression(java.lang.Object expr) throws SemanticExceptionSets the raw expression if the type is not constant. If the type is constant, sets the value.- Parameters:
expr- the raw expression or the value- Throws:
SemanticException
-
getType
java.lang.String getType()
Return the type of the expression.- Returns:
- the expression type
-
setType
void setType(java.lang.String type) throws SemanticExceptionSets the type of the expression.- Parameters:
type- the expression type.- Throws:
SemanticException
-
getTypes
IExpressionType getTypes()
Returns the object represents all possible expression types.- Returns:
- the expression type object
-
-