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 void
accept(QueryVisitor visitor)
String
getIndex()
Get the index (or field).Relation
getRelation()
Get the relation.String
getSearchTerm()
Get the search term.boolean
hasIndexAndRelation()
Check if index and relation in this search clause are set.String
toString()
-
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
null
if none
-
getRelation
public Relation getRelation()
Get the relation.- Returns:
- the relation or
null
if none
-
hasIndexAndRelation
public boolean hasIndexAndRelation()
Check if index and relation in this search clause are set.- Returns:
true
if index and relation were set,false
otherwise
-
getSearchTerm
public String getSearchTerm()
Get the search term.- Returns:
- the search term
-
toString
public String toString()
- Overrides:
toString
in classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
accept
public void accept(QueryVisitor visitor)
- Specified by:
accept
in classAbstractQueryNode<QueryNode,QueryNodeType,QueryVisitor>
-
-