public class BasicGroup extends Object implements Group
Internal class for representing a group within a query.
Constructor and Description |
---|
BasicGroup(boolean theOptional)
Create a new BasicGroup
|
Modifier and Type | Method and Description |
---|---|
void |
add(TupleExpr theExpr) |
void |
addAll(Collection<? extends TupleExpr> theTupleExprs) |
void |
addChild(Group theGroup) |
void |
addFilter(ValueExpr theExpr)
Add a Filter to this group
|
TupleExpr |
expr() |
Collection<StatementPattern> |
getPatterns() |
boolean |
isEmpty() |
boolean |
isOptional() |
void |
removeChild(Group theGroup)
Remove a child from this group
|
int |
size() |
public BasicGroup(boolean theOptional)
theOptional
- whether or not the patterns and filters in this group are optionalpublic void removeChild(Group theGroup)
theGroup
- the child to removepublic void addFilter(ValueExpr theExpr)
theExpr
- the value filter to addpublic boolean isEmpty()
public boolean isOptional()
isOptional
in interface Group
public TupleExpr expr()
expr
in interface SupportsExpr
public void add(TupleExpr theExpr)
public void addAll(Collection<? extends TupleExpr> theTupleExprs)
public Collection<StatementPattern> getPatterns()
Copyright © 2001-2013 Aduna. All Rights Reserved.