jpel.language
Class ExpressionBoolean
java.lang.Object
|
+--jpel.language.AbstractExpression
|
+--jpel.language.ExpressionObject
|
+--jpel.language.ExpressionBoolean
- All Implemented Interfaces:
- ComparableExpression, Expression, java.io.Serializable, StringableExpression
- public class ExpressionBoolean
- extends ExpressionObject
- implements StringableExpression, ComparableExpression
Representa o tipo booleano da linguagem.
- See Also:
- Serialized Form
Field Summary |
static jpel.language.ExpressionBoolean |
FALSE
Constante que representa o booleano "falso". |
static jpel.language.ExpressionBoolean |
TRUE
Constante que representa o booleano "verdadeiro". |
Method Summary |
java.lang.String |
asString()
Fornece uma representação em String da expressão. |
int |
compareTo(jpel.language.ComparableExpression expression)
Indicates a order relation throught instances of the same type. |
boolean |
getBoolean()
|
static jpel.language.ExpressionBoolean |
getBoolean(boolean bool)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jpel.language.Expression |
createClone, equivalent, eval, freeVariable, getData, getData, getSource, getType, rebuild, setData, setSource, setType |
TRUE
public static final jpel.language.ExpressionBoolean TRUE
- Constante que representa o booleano "verdadeiro".
FALSE
public static final jpel.language.ExpressionBoolean FALSE
- Constante que representa o booleano "falso".
getBoolean
public static jpel.language.ExpressionBoolean getBoolean(boolean bool)
getBoolean
public boolean getBoolean()
asString
public java.lang.String asString()
- Description copied from interface:
StringableExpression
- Fornece uma representação em String da expressão.
- Specified by:
asString
in interface StringableExpression
- Returns:
- A String correspondente.
compareTo
public int compareTo(jpel.language.ComparableExpression expression)
throws BadTypedException
- Description copied from interface:
ComparableExpression
- Indicates a order relation throught instances of the same type.
- Specified by:
compareTo
in interface ComparableExpression
- 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.
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractExpression