public abstract static class Query.CompositeTerm extends Object implements Query.Term
Constructor and Description |
---|
CompositeTerm() |
CompositeTerm(Collection<Query.Term> terms) |
CompositeTerm(Query.Term... terms) |
Modifier and Type | Method and Description |
---|---|
void |
add(Query.Term t)
Add a term
|
abstract String |
getOp()
Operation over the terms, such as AND or OR
|
boolean |
hasAttribute(String attribute)
Check if this term (or its sub-terms) contain a given attribute
|
void |
remove(Query.Term t)
Remove a term
|
protected List<Query.Term> |
terms()
List terms
|
String |
toString() |
String |
toString(Query.QueryFormatter f)
Print the term/sub-query
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
match, match
public CompositeTerm()
public CompositeTerm(Query.Term... terms)
public CompositeTerm(Collection<Query.Term> terms)
public void add(Query.Term t)
public void remove(Query.Term t)
protected List<Query.Term> terms()
public boolean hasAttribute(String attribute)
Query.Term
hasAttribute
in interface Query.Term
public String toString(Query.QueryFormatter f)
Query.Term
toString
in interface Query.Term