Package com.sun.tools.txw2.model
Class Define
- java.lang.Object
-
- com.sun.tools.txw2.model.Leaf
-
- com.sun.tools.txw2.model.Node
-
- com.sun.tools.txw2.model.WriterNode
-
- com.sun.tools.txw2.model.Define
-
- All Implemented Interfaces:
Iterable<Leaf>
,ParsedPattern
- Direct Known Subclasses:
Grammar
public class Define extends WriterNode
A named pattern.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description String
name
Grammar
scope
-
Fields inherited from class com.sun.tools.txw2.model.WriterNode
alternativeName
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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)String
toString()
-
Methods inherited from class com.sun.tools.txw2.model.Node
addChild, hasOneChild, iterator
-
Methods inherited from class com.sun.tools.txw2.model.Leaf
createDataMethod, getNext, getPrev, merge, siblings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-