Package eu.clarin.sru.server.fcs.parser
Class QuerySegment
- java.lang.Object
-
- eu.clarin.sru.server.fcs.parser.QueryNode
-
- eu.clarin.sru.server.fcs.parser.QuerySegment
-
public class QuerySegment extends QueryNode
A FCS-QL expression tree query segment node.
-
-
Field Summary
-
Fields inherited from class eu.clarin.sru.server.fcs.parser.QueryNode
children, nodeType, OCCURS_UNBOUNDED, parent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(QueryVisitor visitor)
QueryNode
getExpression()
Get the expression for this segment.int
getMaxOccurs()
Get the maximum occurrence of this segment.int
getMinOccurs()
Get the minimum occurrence of this segment.String
toString()
-
Methods inherited from class eu.clarin.sru.server.fcs.parser.QueryNode
getChild, getChild, getChildCount, getChildren, getFirstChild, getFirstChild, getLastChild, getNodeType, getParent, hasNodeType, setParent
-
-
-
-
Method Detail
-
getExpression
public QueryNode getExpression()
Get the expression for this segment.- Returns:
- the expression
-
getMinOccurs
public int getMinOccurs()
Get the minimum occurrence of this segment.- Returns:
- the minimum occurrence
-
getMaxOccurs
public int getMaxOccurs()
Get the maximum occurrence of this segment.- Returns:
- the maximum occurrence
-
accept
public void accept(QueryVisitor visitor)
-
-