public class GinqAstBuilder
extends CodeVisitorSupport
implements SyntaxErrorReportable
Build the AST for GINQ
| Modifiers | Name | Description |
|---|---|---|
static String |
GINQ_SELECT_DISTINCT |
Metadata key marking select distinct. |
static String |
ROOT_GINQ_EXPRESSION |
Metadata key storing the root GINQ expression. |
| Constructor and description |
|---|
GinqAstBuilder(SourceUnit sourceUnit)Creates a builder for the supplied source unit. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public AbstractGinqExpression |
buildAST(ASTNode astNode)Builds a GINQ AST from the supplied AST node. |
|
public SourceUnit |
getSourceUnit()Returns the source unit used for syntax reporting. |
|
public void |
visitArgumentlistExpression(ArgumentListExpression expression)Visits argument lists and replaces nested select expressions with built GINQ AST nodes. |
|
public void |
visitBinaryExpression(BinaryExpression expression)Visits binary expressions to wire nested GINQ expressions into filters. |
|
public void |
visitCastExpression(CastExpression expression)Visits cast expressions and substitutes nested GINQ expressions when needed. |
|
public void |
visitDeclarationExpression(DeclarationExpression expression)Visits declaration expressions and rejects assignments inside clause keywords. |
|
public void |
visitMethodCallExpression(MethodCallExpression call)Visits method-call expressions while assembling GINQ clauses. |
|
public void |
visitPropertyExpression(PropertyExpression expression)Visits property expressions and reports malformed aliases in select. |
|
public void |
visitVariableExpression(VariableExpression expression)Visits variable expressions and validates GINQ keywords. |
Metadata key marking select distinct.
Metadata key storing the root GINQ expression.
Creates a builder for the supplied source unit.
sourceUnit - the source unit being processedBuilds a GINQ AST from the supplied AST node.
astNode - the node containing GINQ codeReturns the source unit used for syntax reporting.
Visits argument lists and replaces nested select expressions with built GINQ AST nodes.
expression - the expression to visitVisits binary expressions to wire nested GINQ expressions into filters.
expression - the expression to visitVisits cast expressions and substitutes nested GINQ expressions when needed.
expression - the expression to visitVisits declaration expressions and rejects assignments inside clause keywords.
expression - the expression to visitVisits method-call expressions while assembling GINQ clauses.
call - the method call to visit Visits property expressions and reports malformed aliases in select.
expression - the expression to visitVisits variable expressions and validates GINQ keywords.
expression - the expression to visitCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.