Package eu.clarin.sru.fcs.qlparser.lex
Class SearchClause
- 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.SearchClause
-
public class SearchClause extends QueryNode
A LexCQL expression tree search_clause 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)StringgetIndex()Get the index (or field).RelationgetRelation()Get the relation.StringgetSearchTerm()Get the search term.booleanhasIndexAndRelation()Check if index and relation in this search clause are set.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
-
getIndex
public String getIndex()
Get the index (or field).- Returns:
- the index (or field) or
nullif none
-
getRelation
public Relation getRelation()
Get the relation.- Returns:
- the relation or
nullif none
-
hasIndexAndRelation
public boolean hasIndexAndRelation()
Check if index and relation in this search clause are set.- Returns:
trueif index and relation were set,falseotherwise
-
getSearchTerm
public String getSearchTerm()
Get the search term.- Returns:
- the search term
-
toString
public String toString()
- Overrides:
toStringin classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
accept
public void accept(QueryVisitor visitor)
- Specified by:
acceptin classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
-