com.sun.tools.txw2.model
Class Grammar

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
                  extended by com.sun.tools.txw2.model.Grammar
All Implemented Interfaces:
Iterable<Leaf>, org.kohsuke.rngom.ast.om.ParsedPattern

public class Grammar
extends Define

Represents a RELAX NG grammar. A Grammar extends a Define as "start"

Author:
Kohsuke Kawaguchi

Field Summary
static String START
          The name for the start pattern
 
Fields inherited from class com.sun.tools.txw2.model.Define
name, 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
Grammar()
           
 
Method Summary
 Define get(String name)
           
 Collection<Define> getDefinitions()
           
 
Methods inherited from class com.sun.tools.txw2.model.Define
isInline, 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

START

public static final String START
The name for the start pattern

See Also:
Constant Field Values
Constructor Detail

Grammar

public Grammar()
Method Detail

get

public Define get(String name)

getDefinitions

public Collection<Define> getDefinitions()


Copyright © 2012 Oracle. All Rights Reserved.