|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.el.JavaExpression
public class JavaExpression
A single java code expression. A JavaExpression consists of its code and the class type
of that code.
The generated code will call methods of EL
where
the type is indefinite.
Nested Class Summary | |
---|---|
static class |
JavaExpression.Identifier
Dummy class to represent an identifier |
static class |
JavaExpression.StringLiteral
Dummy class to represent a String literal |
Constructor Summary | |
---|---|
JavaExpression(java.lang.Class type,
java.lang.String code)
Constructs a new JavaExpression with the given code of the given type. |
Method Summary | |
---|---|
JavaExpression |
aritmethicOp(org.japano.el.parser.Token op,
JavaExpression that)
|
JavaExpression |
chain(org.japano.el.parser.Token op,
JavaExpression that)
|
JavaExpression |
concat(JavaExpression that)
Generates code for a string concatenation of this expression and a given other expression. |
static JavaExpression |
conditionalExpression(JavaExpression boolExpr,
JavaExpression trueExpr,
JavaExpression falseExpr)
|
JavaExpression |
convertTo(java.lang.Class targetType)
Ensures that this expression will have the given type at runtime. |
java.lang.String |
convertToBoolean()
|
JavaExpression |
convertToCompileTime(java.lang.Class targetType)
Converts this expression to the given type ensuring that it will also have an appropriate compile time type. |
java.lang.String |
convertToObject()
|
java.lang.String |
convertToString()
|
JavaExpression |
equalityOp(org.japano.el.parser.Token op,
JavaExpression that)
|
java.lang.String |
getCode()
Returns the code of this expression. |
java.lang.Class |
getType()
Returns the type of this expression. |
boolean |
isBoolean()
|
boolean |
isStringLiteral()
|
JavaExpression |
logicOp(org.japano.el.parser.Token op,
JavaExpression that)
|
JavaExpression |
negate()
|
JavaExpression |
not()
|
JavaExpression |
relationalOp(org.japano.el.parser.Token op,
JavaExpression that)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaExpression(java.lang.Class type, java.lang.String code)
Method Detail |
---|
public java.lang.String getCode()
public java.lang.Class getType()
public JavaExpression concat(JavaExpression that)
public JavaExpression aritmethicOp(org.japano.el.parser.Token op, JavaExpression that)
public JavaExpression logicOp(org.japano.el.parser.Token op, JavaExpression that)
public JavaExpression relationalOp(org.japano.el.parser.Token op, JavaExpression that)
public JavaExpression not()
public JavaExpression negate()
public boolean isBoolean()
public JavaExpression convertToCompileTime(java.lang.Class targetType)
targetType
- desired type
public JavaExpression convertTo(java.lang.Class targetType)
targetType
- desired type
public java.lang.String convertToBoolean()
public java.lang.String convertToObject()
public JavaExpression chain(org.japano.el.parser.Token op, JavaExpression that)
public JavaExpression equalityOp(org.japano.el.parser.Token op, JavaExpression that)
public java.lang.String convertToString()
public java.lang.String toString()
toString
in class java.lang.Object
public static JavaExpression conditionalExpression(JavaExpression boolExpr, JavaExpression trueExpr, JavaExpression falseExpr)
public boolean isStringLiteral()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |