Class Leaf

  • All Implemented Interfaces:
    com.sun.tools.rngom.ast.om.ParsedPattern
    Direct Known Subclasses:
    Data, Empty, Node, Ref, Value

    public abstract class Leaf
    extends Object
    implements com.sun.tools.rngom.ast.om.ParsedPattern
    Leafs form a set (by a cyclic doubly-linked list.)
    Author:
    Kohsuke Kawaguchi
    • 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.