Class DGrammarPattern
- java.lang.Object
-
- org.kohsuke.rngom.rngparser.digested.DPattern
-
- org.kohsuke.rngom.rngparser.digested.DGrammarPattern
-
-
Constructor Summary
Constructors Constructor Description DGrammarPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
accept(DPatternVisitor<V> visitor)
DDefine
get(String name)
Gets the named pattern by its name.DPattern
getStart()
Gets the start pattern.boolean
isNullable()
Returns true if this pattern is nullable.Iterator<DDefine>
iterator()
Iterates all theDDefine
s in this grammar.-
Methods inherited from class org.kohsuke.rngom.rngparser.digested.DPattern
createParseable, getAnnotation, getLocation, getNext, isAttribute, isElement, setNext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getStart
public DPattern getStart()
Gets the start pattern.
-
get
public DDefine get(String name)
Gets the named pattern by its name.- Returns:
- null if not found.
-
isNullable
public boolean isNullable()
Description copied from class:DPattern
Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.- Specified by:
isNullable
in classDPattern
-
accept
public <V> V accept(DPatternVisitor<V> visitor)
-
-