Package eu.clarin.sru.fcs.qlparser.lex
Class SearchClauseGroup
- java.lang.Object
-
- eu.clarin.sru.fcs.qlparser.AbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
- eu.clarin.sru.fcs.qlparser.lex.QueryNode
-
- eu.clarin.sru.fcs.qlparser.lex.SearchClauseGroup
-
public class SearchClauseGroup extends QueryNode
A LexCQL expression tree search_clausse_group node.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.clarin.sru.fcs.qlparser.AbstractQueryNode
AbstractQueryNode.AbstractQueryNodeType, AbstractQueryNode.AbstractQueryVisitor, AbstractQueryNode.SourceLocation
-
-
Field Summary
-
Fields inherited from class eu.clarin.sru.fcs.qlparser.AbstractQueryNode
children, location, nodeType, parent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(QueryVisitor visitor)RBooleangetBoolean()Get the right child (search clause or group).QueryNodegetLeftChild()Get the left child (search clause or group).QueryNodegetRightChild()Get the right child (search clause or group).booleanhasBoolean(RBoolean r_boolean)Check if expression used a given boolean.StringtoString()-
Methods inherited from class eu.clarin.sru.fcs.qlparser.AbstractQueryNode
getChild, getChild, getChildCount, getChildren, getFirstChild, getFirstChild, getLastChild, getLocation, getNodeType, getParent, hasNodeType, setLocation, setParent
-
-
-
-
Method Detail
-
getLeftChild
public QueryNode getLeftChild()
Get the left child (search clause or group).- Returns:
- the left child (search clause or group)
-
getRightChild
public QueryNode getRightChild()
Get the right child (search clause or group).- Returns:
- the right child (search clause or group)
-
getBoolean
public RBoolean getBoolean()
Get the right child (search clause or group).- Returns:
- the right child (search clause or group)
-
hasBoolean
public boolean hasBoolean(RBoolean r_boolean)
Check if expression used a given boolean.- Parameters:
r_boolean- the boolean to check- Returns:
trueif the given boolean was used,falseotherwise
-
toString
public String toString()
- Overrides:
toStringin classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
accept
public void accept(QueryVisitor visitor)
- Specified by:
acceptin classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
-