public class GinqExpression
extends AbstractGinqExpression
Represents GINQ expression, which has the following structure:
ginq
|__ from
|__ [innerjoin/leftjoin/rightjoin/fulljoin/crossjoin]*
| |__ on
|__ [where]
|__ [groupby] [into]
| |__ [having]
|__ [orderby]
|__ [limit]
|__ select
(Note: [ ] means optional)| Fields inherited from class | Fields |
|---|---|
class Expression |
EMPTY_ARRAY |
| Type Params | Return Type | Name and description |
|---|---|---|
<R> |
public R |
accept(GinqAstVisitor<R> visitor)Accepts a GINQ visitor. |
|
public void |
addJoinExpression(JoinExpression joinExpression)Adds a join clause. |
|
public FromExpression |
getFromExpression()Returns the from clause. |
|
public GroupExpression |
getGroupExpression()Returns the groupby clause. |
|
public List<JoinExpression> |
getJoinExpressionList()Returns the join clauses. |
|
public LimitExpression |
getLimitExpression()Returns the limit clause. |
|
public OrderExpression |
getOrderExpression()Returns the orderby clause. |
|
public SelectExpression |
getSelectExpression()Returns the select clause. |
|
public String |
getText()Returns the textual GINQ form of this expression. |
|
public WhereExpression |
getWhereExpression()Returns the where clause. |
|
public void |
setFromExpression(FromExpression fromExpression)Sets the from clause. |
|
public void |
setGroupExpression(GroupExpression groupExpression)Sets the groupby clause. |
|
public void |
setLimitExpression(LimitExpression limitExpression)Sets the limit clause. |
|
public void |
setOrderExpression(OrderExpression orderExpression)Sets the orderby clause. |
|
public void |
setSelectExpression(SelectExpression selectExpression)Sets the select clause. |
|
public void |
setWhereExpression(WhereExpression whereExpression)Sets the where clause. |
|
public String |
toString()Returns the textual form of this expression. |
|
public void |
visit(GroovyCodeVisitor visitor)Dispatches this expression to a GINQ-aware Groovy visitor. |
| Methods inherited from class | Name |
|---|---|
class AbstractGinqExpression |
accept, transformExpression, visit |
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Accepts a GINQ visitor.
visitor - the visitor to acceptR - the visit result typeAdds a join clause.
joinExpression - the clause to add Returns the from clause.
from clause Returns the groupby clause.
groupby clauseReturns the join clauses.
Returns the limit clause.
limit clause Returns the orderby clause.
orderby clause Returns the select clause.
select clauseReturns the textual GINQ form of this expression.
Returns the where clause.
where clause Sets the from clause.
fromExpression - the clause to set Sets the groupby clause.
groupExpression - the clause to set Sets the limit clause.
limitExpression - the clause to set Sets the orderby clause.
orderExpression - the clause to set Sets the select clause.
selectExpression - the clause to set Sets the where clause.
whereExpression - the clause to setReturns the textual form of this expression.
Dispatches this expression to a GINQ-aware Groovy visitor.
visitor - the visitor to invoke