- java.lang.Object
-
- com.sun.tools.txw2.model.Leaf
-
- All Implemented Interfaces:
ParsedPattern
public abstract class Leaf extends Object implements ParsedPattern
Leafs form a set (by a cyclic doubly-linked list.)- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, Set<Prop> props)Creates a prop of the data value method.LeafgetNext()LeafgetPrev()Leafmerge(Leaf that)Combines two sets into one set.Iterable<Leaf>siblings()Returns the collection of all the siblings (including itself)
-
-
-
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()
-
siblings
public final Iterable<Leaf> siblings()
Returns the collection of all the siblings (including itself)
-
createDataMethod
protected final void createDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, Set<Prop> props)
Creates a prop of the data value method.
-
-