Package eu.clarin.sru.fcs.qlparser.lex
Class Modifier
- 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.Modifier
-
public class Modifier extends QueryNode
A LexCQL expression tree modifier 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
getName()
Get the modifier name.String
getRelation()
Get the modifier relation.String
getValue()
Get the modifier value.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
-
getName
public String getName()
Get the modifier name.- Returns:
- the name
-
getRelation
public String getRelation()
Get the modifier relation.- Returns:
- the relation or
null
if none
-
getValue
public String getValue()
Get the modifier value.- Returns:
- the value or
null
if none
-
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>
-
-