FileDocCategorySizeDatePackage
GrammarElement.javaAPI DocGlassfish v2 API1536Wed Aug 30 15:34:08 BST 2006persistence.antlr

GrammarElement

public abstract class GrammarElement extends Object
A GrammarElement is a generic node in our data structure that holds a grammar in memory. This data structure can be used for static analysis or for dynamic analysis (during parsing). Every node must know which grammar owns it, how to generate code, and how to do analysis.

Fields Summary
public static final int
AUTO_GEN_NONE
public static final int
AUTO_GEN_CARET
public static final int
AUTO_GEN_BANG
protected Grammar
grammar
protected int
line
protected int
column
Constructors Summary
public GrammarElement(Grammar g)


       
        grammar = g;
        line = -1;
        column = -1;
    
public GrammarElement(Grammar g, Token start)

        grammar = g;
        line = start.getLine();
        column = start.getColumn();
    
Methods Summary
public voidgenerate()

    
public intgetColumn()

        return column;
    
public intgetLine()

        return line;
    
public persistence.antlr.Lookaheadlook(int k)

        return null;
    
public abstract java.lang.StringtoString()