java.lang.Iterable<DDefine>, ParsedPatternpublic class DGrammarPattern extends DPattern implements java.lang.Iterable<DDefine>
<grammar> pattern, which is a collection of named patterns.| Constructor | Description |
|---|---|
DGrammarPattern() |
| Modifier and Type | Method | Description |
|---|---|---|
<V> V |
accept(DPatternVisitor<V> visitor) |
|
DDefine |
get(java.lang.String name) |
Gets the named pattern by its name.
|
DPattern |
getStart() |
Gets the start pattern.
|
boolean |
isNullable() |
Returns true if this pattern is nullable.
|
java.util.Iterator<DDefine> |
iterator() |
Iterates all the
DDefines in this grammar. |
createParseable, getAnnotation, getLocation, isAttribute, isElementpublic DPattern getStart()
public DDefine get(java.lang.String name)
public java.util.Iterator<DDefine> iterator()
DDefines in this grammar.iterator in interface java.lang.Iterable<DDefine>public boolean isNullable()
DPatternisNullable in class DPatternpublic <V> V accept(DPatternVisitor<V> visitor)
Copyright © 2017 Oracle Corporation. All rights reserved.