Class Leaf

java.lang.Object
com.sun.tools.txw2.model.Leaf
All Implemented Interfaces:
ParsedPattern
Direct Known Subclasses:
Data, Empty, Node, Ref, Value

public abstract class Leaf extends Object implements ParsedPattern
Leafs form a set (by a cyclic doubly-linked list.)
Author:
Kohsuke Kawaguchi
  • Field Details

    • location

      public Locator location
      Source location where this leaf was defined.
  • Constructor Details

    • Leaf

      protected Leaf(Locator location)
  • Method Details

    • 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(JDefinedClass clazz, JType valueType, NodeSet nset, Set<Prop> props)
      Creates a prop of the data value method.