Class DGrammarPattern
java.lang.Object
org.kohsuke.rngom.rngparser.digested.DPattern
org.kohsuke.rngom.rngparser.digested.DGrammarPattern
- All Implemented Interfaces:
Iterable<DDefine>,ParsedPattern
<grammar> pattern, which is a collection of named patterns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Vaccept(DPatternVisitor<V> visitor) Gets the named pattern by its name.getStart()Gets the start pattern.booleanReturns true if this pattern is nullable.iterator()Iterates all theDDefines in this grammar.Methods inherited from class org.kohsuke.rngom.rngparser.digested.DPattern
createParseable, getAnnotation, getLocation, getNext, isAttribute, isElement, setNextMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DGrammarPattern
public DGrammarPattern()
-
-
Method Details
-
getStart
Gets the start pattern. -
get
Gets the named pattern by its name.- Returns:
- null if not found.
-
iterator
Iterates all theDDefines in this grammar. -
isNullable
public boolean isNullable()Description copied from class:DPatternReturns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.- Specified by:
isNullablein classDPattern
-
accept
-