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 SymbolLeft hand side symbol of the ruleprotected intMinimum depth of parse tree for production to map to terminal symbol(s)protected booleanRecursive 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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:
clonein classArrayList<Production>
-
toString
- Overrides:
toStringin classAbstractCollection<Production>
-