public class GroovyAST2OQLVisitor extends org.codehaus.groovy.ast.CodeVisitorSupport implements org.codehaus.groovy.ast.GroovyCodeVisitor, org.codehaus.groovy.ast.GroovyClassVisitor, OQLQueryInstanceI
Expressions
in a Groovy AST to an OQL
query.Constructor and Description |
---|
GroovyAST2OQLVisitor(EntityI _entity,
java.util.Map _binding,
java.lang.String _src) |
GroovyAST2OQLVisitor(EntityI _entity,
java.util.Map _binding,
java.lang.String _src,
java.lang.String _additionalClauses) |
GroovyAST2OQLVisitor(EntityI _entity,
java.util.Map _binding,
java.lang.String _src,
java.lang.String _additionalClauses,
java.lang.Object[] _additionalParams) |
GroovyAST2OQLVisitor(EntityI _entity,
java.util.Map _binding,
java.lang.String _src,
java.lang.String _additionalClauses,
java.lang.Object[] _additionalParams,
java.lang.String _queryWhat) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getParameters()
Returns the query parameters.
|
java.lang.String |
getText()
Gets the OQL query text this visitor has generated (so far).
|
java.lang.String |
getText(java.lang.String additionalClauses)
Returns the query text including the passed additional clauses.
|
boolean |
hasTypeClass(org.codehaus.groovy.ast.expr.Expression _expr,
java.lang.Class _clazz) |
void |
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression _expr) |
void |
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement _block) |
void |
visitClass(org.codehaus.groovy.ast.ClassNode node) |
void |
visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression _expr) |
void |
visitConstructor(org.codehaus.groovy.ast.ConstructorNode node) |
void |
visitField(org.codehaus.groovy.ast.FieldNode node) |
void |
visitListOfExpressions(java.util.List _list) |
void |
visitMethod(org.codehaus.groovy.ast.MethodNode node) |
void |
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression _expr) |
void |
visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression _expr) |
void |
visitProperty(org.codehaus.groovy.ast.PropertyNode node) |
void |
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression _expr) |
void |
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression _expr) |
visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodPointerExpression, visitPostfixExpression, visitPrefixExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitWhileLoop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodPointerExpression, visitPostfixExpression, visitPrefixExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitWhileLoop
public GroovyAST2OQLVisitor(EntityI _entity, java.util.Map _binding, java.lang.String _src)
public GroovyAST2OQLVisitor(EntityI _entity, java.util.Map _binding, java.lang.String _src, java.lang.String _additionalClauses)
public GroovyAST2OQLVisitor(EntityI _entity, java.util.Map _binding, java.lang.String _src, java.lang.String _additionalClauses, java.lang.Object[] _additionalParams)
public GroovyAST2OQLVisitor(EntityI _entity, java.util.Map _binding, java.lang.String _src, java.lang.String _additionalClauses, java.lang.Object[] _additionalParams, java.lang.String _queryWhat)
public java.lang.String getText()
getText
in interface OQLQueryInstanceI
public java.lang.String getText(java.lang.String additionalClauses)
OQLQueryInstanceI
getText
in interface OQLQueryInstanceI
public java.lang.Object[] getParameters()
OQLQueryInstanceI
getParameters
in interface OQLQueryInstanceI
public boolean hasTypeClass(org.codehaus.groovy.ast.expr.Expression _expr, java.lang.Class _clazz)
public void visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement _block)
visitBlockStatement
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitBlockStatement
in class org.codehaus.groovy.ast.CodeVisitorSupport
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 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 visitListOfExpressions(java.util.List _list)
visitListOfExpressions
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 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 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 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 void visitField(org.codehaus.groovy.ast.FieldNode node)
visitField
in interface org.codehaus.groovy.ast.GroovyClassVisitor
public void visitProperty(org.codehaus.groovy.ast.PropertyNode node)
visitProperty
in interface org.codehaus.groovy.ast.GroovyClassVisitor
public void visitMethod(org.codehaus.groovy.ast.MethodNode node)
visitMethod
in interface org.codehaus.groovy.ast.GroovyClassVisitor
public void visitConstructor(org.codehaus.groovy.ast.ConstructorNode node)
visitConstructor
in interface org.codehaus.groovy.ast.GroovyClassVisitor
public void visitClass(org.codehaus.groovy.ast.ClassNode node)
visitClass
in interface org.codehaus.groovy.ast.GroovyClassVisitor
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.