jpel.language
Interface ComparableExpression
- All Superinterfaces:
- Expression, java.io.Serializable
- All Known Implementing Classes:
- ExpressionBoolean, ExpressionCharacter, ExpressionId, ExpressionListImpl, ExpressionListNumber, ExpressionNumber, ExpressionString
- public interface ComparableExpression
- extends Expression
Permite que expressões possuam uma relação de ordem. Esta interface é usada
na definição das comparações.
Method Summary |
int |
compareTo(jpel.language.ComparableExpression expression)
Indicates a order relation throught instances of the same type. |
Methods inherited from interface jpel.language.Expression |
createClone, equivalent, eval, freeVariable, getData, getData, getSource, getType, rebuild, setData, setSource, setType |
compareTo
public int compareTo(jpel.language.ComparableExpression expression)
throws BadTypedException
- Indicates a order relation throught instances of the same type.
- Returns:
- -1 if it comes before then the give expression, 0 if is in the same
leve, and 1 otherwise.
- Throws:
BadTypedException
- When a wrong comparation type is passed.