Package org.opencypher.tools.g4tree
Class InOptional
- java.lang.Object
-
- org.opencypher.tools.g4tree.ElementWithCardinality
-
- org.opencypher.tools.g4tree.InOptional
-
- All Implemented Interfaces:
Element,GrammarItem
public class InOptional 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 InOptional(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
-
InOptional
public InOptional(GrammarItem content)
-
-
Method Detail
-
getMin
public int getMin()
- Specified by:
getMinin classElementWithCardinality
-
isUnbounded
public boolean isUnbounded()
- Specified by:
isUnboundedin classElementWithCardinality
-
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
-
-