FileDocCategorySizeDatePackage
TreeElement.javaAPI DocGlassfish v2 API850Wed Aug 30 15:34:12 BST 2006persistence.antlr

TreeElement

public class TreeElement extends AlternativeBlock
A TreeElement is a block with one alternative and a root node

Fields Summary
GrammarAtom
root
Constructors Summary
public TreeElement(Grammar g, Token start)

        super(g, start, false);
    
Methods Summary
public voidgenerate()

        grammar.generator.gen(this);
    
public persistence.antlr.Lookaheadlook(int k)

        return grammar.theLLkAnalyzer.look(k, this);
    
public java.lang.StringtoString()

        String s = " #(" + root;
        Alternative a = (Alternative)alternatives.elementAt(0);
        AlternativeElement p = a.head;
        while (p != null) {
            s += p;
            p = p.next;
        }
        return s + " )";