TXW2 Compiler 20110809-redhat-2

com.sun.tools.txw2.model
Class Leaf

java.lang.Object
  extended by com.sun.tools.txw2.model.Leaf
All Implemented Interfaces:
org.kohsuke.rngom.ast.om.ParsedPattern
Direct Known Subclasses:
Data, Empty, Node, Ref, Value

public abstract class Leaf
extends Object
implements org.kohsuke.rngom.ast.om.ParsedPattern

Leafs form a set (by a cyclic doubly-linked list.)

Author:
Kohsuke Kawaguchi

Field Summary
 Locator location
          Source location where this leaf was defined.
 
Constructor Summary
protected Leaf(Locator location)
           
 
Method Summary
protected  void createDataMethod(com.sun.codemodel.JDefinedClass clazz, com.sun.codemodel.JType valueType, NodeSet nset, Set<Prop> props)
          Creates a prop of the data value method.
 Leaf getNext()
           
 Leaf getPrev()
           
 Leaf merge(Leaf that)
          Combines two sets into one set.
 Iterable<Leaf> siblings()
          Returns the collection of all the siblings (including itself)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

public Locator location
Source location where this leaf was defined.

Constructor Detail

Leaf

protected Leaf(Locator location)
Method Detail

getNext

public final Leaf getNext()

getPrev

public final Leaf getPrev()

merge

public final Leaf merge(Leaf that)
Combines two sets into one set.

Returns:
this

siblings

public final Iterable<Leaf> siblings()
Returns the collection of all the siblings (including itself)


createDataMethod

protected final void createDataMethod(com.sun.codemodel.JDefinedClass clazz,
                                      com.sun.codemodel.JType valueType,
                                      NodeSet nset,
                                      Set<Prop> props)
Creates a prop of the data value method.


TXW2 Compiler 20110809-redhat-2

Copyright © 2012 Oracle. All Rights Reserved.