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 ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V> V
accept
(DPatternVisitor<V> visitor) Gets the named pattern by its name.getStart()
Gets the start pattern.boolean
Returns true if this pattern is nullable.iterator()
Iterates all theDDefine
s in this grammar.Methods inherited from class com.sun.tools.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 theDDefine
s in this grammar. -
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
-