|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.el.JavaExpressionGenerator
public class JavaExpressionGenerator
Transforms an EL syntax tree into an optimized java expression.
Constructor Summary | |
---|---|
JavaExpressionGenerator(org.japano.jasper.compiler.CompilationContext context,
boolean jspExpressions)
Creates a new instance of ELCompiler |
Method Summary | |
---|---|
static void |
doMain(java.lang.String[] args)
Transforms the first argument into a JavaExpression or asks the user to input one. |
static void |
main(java.lang.String[] args)
|
JavaExpression |
transform(org.japano.el.parser.Node n,
java.lang.Class targetType,
org.japano.jasper.compiler.Node baseNode)
|
JavaExpression |
transform(java.lang.String expression,
boolean ELIgnored,
java.lang.Class targetType,
org.japano.jasper.compiler.Node baseNode)
Transforms the given EL syntax tree into a JavaExpression. |
static java.lang.String |
unescape(java.lang.String s)
|
java.lang.Object |
visit(org.japano.el.parser.ELAdditiveExpression node,
java.lang.Object data)
Visit an ELAdditiveExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELAndExpression node,
java.lang.Object data)
Visit an ELAndExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELChainedExpression node,
java.lang.Object data)
Visit an ELChainedExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELConditionalExpression node,
java.lang.Object data)
Visit an ELConditionalExpression Node. |
java.lang.Object |
visit(org.japano.el.parser.ELEqualityExpression node,
java.lang.Object data)
Visit an ELEqualityExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELFunctionInvocation node,
java.lang.Object data)
|
java.lang.Object |
visit(org.japano.el.parser.ELIdentifier node,
java.lang.Object data)
Visit an ELIdentifier node. |
java.lang.Object |
visit(org.japano.el.parser.ELLiteral node,
java.lang.Object data)
Visit an ELLiteral node |
java.lang.Object |
visit(org.japano.el.parser.ELMultiplicativeExpression node,
java.lang.Object data)
Visit an ELMultiplicativeExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELNonExpressionText node,
java.lang.Object data)
Visit an ELNonExpressionText Node. |
java.lang.Object |
visit(org.japano.el.parser.ELOrExpression node,
java.lang.Object data)
Visit an ELOrExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELRelationExpression node,
java.lang.Object data)
Visit an ELRelationExpression node. |
java.lang.Object |
visit(org.japano.el.parser.ELRoot node,
java.lang.Object data)
Visit an ELRoot Node |
java.lang.Object |
visit(org.japano.el.parser.ELUnaryExpression node,
java.lang.Object data)
Visit an ELUnaryExpression node. |
java.lang.Object |
visit(org.japano.el.parser.SimpleNode node,
java.lang.Object data)
Visit a SimpleNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaExpressionGenerator(org.japano.jasper.compiler.CompilationContext context, boolean jspExpressions)
context
- compilation contextjspExpressions
- if true
, JSP Expressions will be handled in non-EL-Expression Text.Method Detail |
---|
public JavaExpression transform(java.lang.String expression, boolean ELIgnored, java.lang.Class targetType, org.japano.jasper.compiler.Node baseNode) throws org.japano.el.parser.ParseException
expression
- EL expression to transform into a java expressionELIgnored
- if true
, ELExpressions are ignored and only JSP expression are evaluated.targetType
- type the returned java expression should have. null
for any type.
org.japano.el.parser.ParseException
public JavaExpression transform(org.japano.el.parser.Node n, java.lang.Class targetType, org.japano.jasper.compiler.Node baseNode)
public java.lang.Object visit(org.japano.el.parser.ELRoot node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELRootdata
- null
public java.lang.Object visit(org.japano.el.parser.ELNonExpressionText node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELNonExpressionTextdata
- null
public java.lang.Object visit(org.japano.el.parser.ELConditionalExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELConditionalExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELAdditiveExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELAdditiveExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELMultiplicativeExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELMultiplicativeExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELOrExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELOrExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELAndExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELAndExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELUnaryExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELUnaryExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELRelationExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELRelationExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELEqualityExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELEqualityExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELLiteral node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELLiteraldata
- null
public java.lang.Object visit(org.japano.el.parser.ELIdentifier node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELIdentifierdata
- null
public java.lang.Object visit(org.japano.el.parser.ELChainedExpression node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- ELChainedExpressiondata
- null
public java.lang.Object visit(org.japano.el.parser.ELFunctionInvocation node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
public java.lang.Object visit(org.japano.el.parser.SimpleNode node, java.lang.Object data)
visit
in interface org.japano.el.parser.ELParserVisitor
node
- SimpleNodedata
- null
public static void doMain(java.lang.String[] args) throws org.japano.el.parser.ParseException
args
- arguments
java.lang.Exception
org.japano.el.parser.ParseException
public static java.lang.String unescape(java.lang.String s)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |