Package jeco.core.util.bnf
Class Rule
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Production>
,Collection<Production>
,List<Production>
,RandomAccess
,SequencedCollection<Production>
Represents a rule in a BNF grammar.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Symbol
Left hand side symbol of the ruleprotected int
Minimum depth of parse tree for production to map to terminal symbol(s)protected boolean
Recursive nature of ruleFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
recursive
protected boolean recursiveRecursive nature of rule -
minimumDepth
protected int minimumDepthMinimum depth of parse tree for production to map to terminal symbol(s) -
lhs
Left hand side symbol of the rule
-
-
Constructor Details
-
Rule
public Rule()Constructor
-
-
Method Details
-
clone
- Overrides:
clone
in classArrayList<Production>
-
toString
- Overrides:
toString
in classAbstractCollection<Production>
-