Package org.opencypher.tools.g4tree
Class Group
- java.lang.Object
-
- org.opencypher.tools.g4tree.ElementWithCardinality
-
- org.opencypher.tools.g4tree.Group
-
- All Implemented Interfaces:
Element,GrammarItem
public class Group extends ElementWithCardinality
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opencypher.tools.g4tree.GrammarItem
GrammarItem.ItemType
-
-
Field Summary
-
Fields inherited from interface org.opencypher.tools.g4tree.GrammarItem
INDENT
-
-
Constructor Summary
Constructors Constructor Description Group(GrammarItem content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMin()StringgetStructure(String indent)Reserialise showing the internal structure of the grammar.booleanisUnbounded()-
Methods inherited from class org.opencypher.tools.g4tree.ElementWithCardinality
extractContent, getChildren, getContentStructure, getType, isKeywordPart, isPlural, reachThrough, toString
-
-
-
-
Constructor Detail
-
Group
public Group(GrammarItem content)
-
-
Method Detail
-
getStructure
public String getStructure(String indent)
Description copied from interface:GrammarItemReserialise showing the internal structure of the grammar. This is based on the rules of the "orignal BNF" g4, and may not correspond to how the user thinks of the structure- Parameters:
indent- how much to indent each level of the structure- Returns:
- a String showing the internals and values in the grammar
-
getMin
public int getMin()
- Specified by:
getMinin classElementWithCardinality
-
isUnbounded
public boolean isUnbounded()
- Specified by:
isUnboundedin classElementWithCardinality
-
-