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>, org.kohsuke.rngom.ast.om.ParsedPattern
- Direct Known Subclasses:
- Grammar
public class Define
- extends WriterNode
A named pattern.
- Author:
- Kohsuke Kawaguchi
Fields inherited from class com.sun.tools.txw2.model.Node |
leaf |
Fields inherited from class com.sun.tools.txw2.model.Leaf |
location |
Method Summary |
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()
|
scope
public final Grammar scope
name
public final String name
Define
public Define(Grammar scope,
String name)
isInline
public 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)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Oracle. All Rights Reserved.