public class From extends Object implements LanguageObject
UnaryFromClause
) or a join predicate (JoinPredicate
).LanguageObject.Util
Constructor and Description |
---|
From()
Constructs a default instance of this class.
|
From(List<? extends FromClause> parameters)
Constructs an instance of this class from an ordered set of from clauses
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
void |
addClause(FromClause clause)
Add a clause to the FROM
|
void |
addClauses(Collection<? extends FromClause> toAdd)
Add clauses to the FROM
|
void |
addGroup(GroupSymbol group)
Adds a new group to the list (it will be wrapped in a UnaryFromClause)
|
void |
addGroups(Collection<GroupSymbol> groups)
Adds a new collection of groups to the list
|
Object |
clone()
Return copy of this From clause.
|
boolean |
containsGroup(GroupSymbol group)
Checks if a group is in the From
|
boolean |
equals(Object obj)
Compare two Froms for equality.
|
List<FromClause> |
getClauses()
Get all the clauses in FROM
|
List<GroupSymbol> |
getGroups()
Returns an ordered list of the groups in all sub-clauses.
|
int |
hashCode()
Get hashcode for From.
|
void |
setClauses(List<FromClause> clauses)
Set all the clauses
|
String |
toString()
Returns a string representation of an instance of this class.
|
public From()
public From(List<? extends FromClause> parameters)
parameters
- The ordered list of from clausespublic void addClause(FromClause clause)
clause
- Add a clause to the FROMpublic void addClauses(Collection<? extends FromClause> toAdd)
clauses
- Collection of FromClause
spublic List<FromClause> getClauses()
FromClause
public void setClauses(List<FromClause> clauses)
clauses
- List of FromClause
public void addGroup(GroupSymbol group)
group
- Group to addpublic void addGroups(Collection<GroupSymbol> groups)
groups
- Collection of GroupSymbol
public List<GroupSymbol> getGroups()
GroupSymbol
public boolean containsGroup(GroupSymbol group)
group
- Group to check forpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic Object clone()
clone
in interface LanguageObject
clone
in class Object
public boolean equals(Object obj)
public int hashCode()
Copyright © 2018 JBoss by Red Hat. All rights reserved.