|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jpel.language.AbstractExpression | +--jpel.language.AbstractNamedExpression | +--jpel.language.ExpressionId
Expressão que representa um identificador.
Field Summary | |
static java.lang.String |
SEPARATOR
Separador usado para definição hierarquica de identificadores. |
Constructor Summary | |
ExpressionId(java.lang.String id)
|
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. |
jpel.language.Expression |
createClone()
Retorna um clone da expressão. |
boolean |
equals(java.lang.Object obj)
|
boolean |
equivalent(jpel.language.Expression expression)
Indica se uma expressão pode ser considerada equivalente à outra. |
jpel.language.Expression |
eval(jpel.language.Environment environment)
Executa uma expressão de acordo com o ambiente definido. |
void |
freeVariable(jpel.language.ExpressionList list)
Guarda as variáveis livres da expressão em uma lista. |
jpel.language.ExpressionId |
getLocal()
|
jpel.language.ExpressionId |
getModule()
|
int |
hashCode()
|
boolean |
hasModule()
|
boolean |
isJvm()
|
boolean |
isLang()
|
boolean |
isRelative()
|
static void |
main(java.lang.String[] args)
|
jpel.language.Expression |
rebuild(jpel.language.MapReplace map)
Permite que sub-expressões sejam substibuídas por outras, de acordo com o mapeamento dado. |
void |
setJvm(boolean jvm)
|
void |
setLang(boolean lang)
|
java.lang.String |
toString()
|
Methods inherited from class jpel.language.AbstractNamedExpression |
getName, setName |
Methods inherited from class jpel.language.AbstractExpression |
getData, getData, getSource, getType, setData, setSource, setType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jpel.language.Expression |
getData, getData, getSource, getType, setData, setSource, setType |
Field Detail |
public static final java.lang.String SEPARATOR
Constructor Detail |
public ExpressionId(java.lang.String id)
Method Detail |
public void freeVariable(jpel.language.ExpressionList list)
Expression
freeVariable
in interface Expression
list
- A lista onde as variáveis livres vão ser inseridas.public jpel.language.Expression rebuild(jpel.language.MapReplace map)
Expression
rebuild
in interface Expression
map
- O mapeamento que guarda as substituições.
public jpel.language.Expression eval(jpel.language.Environment environment) throws ExecutionException
Expression
eval
in interface Expression
environment
- Ambiente no qual a expressão deve ser executada.
ExecutionException
- Quando os tipos necessários para a correta
avaliação da expressão não são respeitados.public boolean equivalent(jpel.language.Expression expression)
Expression
equivalent
in interface Expression
equivalent
in class AbstractExpression
expression
- Expressão ao qual se deseja verificar a equivalência.
public jpel.language.Expression createClone()
Expression
createClone
in interface Expression
createClone
in class AbstractExpression
public java.lang.String asString()
StringableExpression
asString
in interface StringableExpression
public int compareTo(jpel.language.ComparableExpression expression) throws BadTypedException
ComparableExpression
compareTo
in interface ComparableExpression
BadTypedException
- When a wrong comparation type is passed.public boolean hasModule()
public jpel.language.ExpressionId getModule()
public jpel.language.ExpressionId getLocal()
public boolean isRelative()
public void setLang(boolean lang)
public boolean isLang()
public void setJvm(boolean jvm)
public boolean isJvm()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class AbstractExpression
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |