Package com.sun.tools.txw2.model
Class Leaf
- java.lang.Object
-
- com.sun.tools.txw2.model.Leaf
-
- All Implemented Interfaces:
ParsedPattern
public abstract class Leaf extends java.lang.Object implements ParsedPattern
Leaf
s form a set (by a cyclic doubly-linked list.)- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description org.xml.sax.Locator
location
Source location where this leaf was defined.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Leaf(org.xml.sax.Locator location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, java.util.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.java.lang.Iterable<Leaf>
siblings()
Returns the collection of all the siblings (including itself)
-
-
-
Method Detail
-
getNext
public final Leaf getNext()
-
getPrev
public final Leaf getPrev()
-
siblings
public final java.lang.Iterable<Leaf> siblings()
Returns the collection of all the siblings (including itself)
-
createDataMethod
protected final void createDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, java.util.Set<Prop> props)
Creates a prop of the data value method.
-
-