Package com.sun.tools.rngom.digested
Class DGrammarPattern
java.lang.Object
com.sun.tools.rngom.digested.DPattern
com.sun.tools.rngom.digested.DGrammarPattern
- All Implemented Interfaces:
ParsedPattern,Iterable<DDefine>
<grammar> pattern, which is a collection of named patterns.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
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 com.sun.tools.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElementMethods inherited from class java.lang.Object
clone, equals, finalize, 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
-