Grammarpublic class Define extends WriterNode
| Modifier and Type | Field | Description |
|---|---|---|
java.lang.String |
name |
|
Grammar |
scope |
alternativeName| Constructor | Description |
|---|---|
Define(Grammar scope,
java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isInline() |
Returns true if this define only contains
one child (and thus considered inlinable.)
A pattern definition is also inlineable if
it's the start of the grammar (because "start" isn't a meaningful name)
|
java.lang.String |
toString() |
createDataMethod, getNext, getPrev, merge, siblingsaddChild, hasOneChild, iteratorpublic final Grammar scope
public final java.lang.String name
public Define(Grammar scope, java.lang.String name)
public boolean isInline()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Oracle Corporation. All rights reserved.