public class GroovyASTEvaluationAnalyzerVisitor
extends org.codehaus.groovy.ast.CodeVisitorSupport
Expressions
in the AST if they
can be evaluated "statically" during code parsing or if they must be
converted to OQL and be evaluated by the DB and flags the
Expression
objects accordingly.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MDKEY_ONLY_DB_CAN_EVALUATE |
Constructor and Description |
---|
GroovyASTEvaluationAnalyzerVisitor(EntityI _entity) |
Modifier and Type | Method and Description |
---|---|
void |
collectAndMarkOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr,
org.codehaus.groovy.ast.expr.Expression[] _exprs) |
EntityI |
getEntity() |
static java.lang.Boolean |
isOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr) |
static boolean |
isOnlyDBCanEvaluateNN(org.codehaus.groovy.ast.expr.Expression _expr) |
static boolean |
isOnlyDBCanEvaluateNN(org.codehaus.groovy.ast.expr.Expression _expr,
boolean _default) |
void |
markOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr) |
void |
markOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr,
java.lang.Boolean _value) |
void |
setEntity(EntityI $10) |
void |
visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression _expr) |
void |
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression _expr) |
void |
visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression _expr) |
void |
visitListExpression(org.codehaus.groovy.ast.expr.ListExpression _expr) |
void |
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression _expr) |
void |
visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression _expr) |
void |
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression _expr) |
void |
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression _expr) |
visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitMapEntryExpression, visitMapExpression, visitMethodPointerExpression, visitPostfixExpression, visitPrefixExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitWhileLoop
public static final java.lang.String MDKEY_ONLY_DB_CAN_EVALUATE
public GroovyASTEvaluationAnalyzerVisitor(EntityI _entity)
public static boolean isOnlyDBCanEvaluateNN(org.codehaus.groovy.ast.expr.Expression _expr)
public static boolean isOnlyDBCanEvaluateNN(org.codehaus.groovy.ast.expr.Expression _expr, boolean _default)
public static java.lang.Boolean isOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr)
public void markOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr)
public void markOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr, java.lang.Boolean _value)
public void collectAndMarkOnlyDBCanEvaluate(org.codehaus.groovy.ast.expr.Expression _expr, org.codehaus.groovy.ast.expr.Expression[] _exprs)
public void visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression _expr)
visitBinaryExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitBinaryExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression _expr)
visitNotExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitNotExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression _expr)
visitMethodCallExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitMethodCallExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression _expr)
visitPropertyExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitPropertyExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression _expr)
visitArgumentlistExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitArgumentlistExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitListExpression(org.codehaus.groovy.ast.expr.ListExpression _expr)
visitListExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitListExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression _expr)
visitConstantExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitConstantExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression _expr)
visitVariableExpression
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitVariableExpression
in class org.codehaus.groovy.ast.CodeVisitorSupport
public EntityI getEntity()
public void setEntity(EntityI $10)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.