TXW2 Compiler 20110809-redhat-2

com.sun.tools.txw2.model
Class Define

java.lang.Object
  extended by com.sun.tools.txw2.model.Leaf
      extended by com.sun.tools.txw2.model.Node
          extended by com.sun.tools.txw2.model.WriterNode
              extended by 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

Field Summary
 String name
           
 Grammar scope
           
 
Fields inherited from class com.sun.tools.txw2.model.WriterNode
alternativeName
 
Fields inherited from class com.sun.tools.txw2.model.Node
leaf
 
Fields inherited from class com.sun.tools.txw2.model.Leaf
location
 
Constructor Summary
Define(Grammar scope, String name)
           
 
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()
           
 
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
 

Field Detail

scope

public final Grammar scope

name

public final String name
Constructor Detail

Define

public Define(Grammar scope,
              String name)
Method Detail

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

TXW2 Compiler 20110809-redhat-2

Copyright © 2012 Oracle. All Rights Reserved.