FileDocCategorySizeDatePackage
Alternative.javaAPI DocGlassfish v2 API2055Wed Aug 30 15:34:04 BST 2006persistence.antlr

Alternative

public class Alternative extends Object
Intermediate data class holds information about an alternative

Fields Summary
AlternativeElement
head
AlternativeElement
tail
protected SynPredBlock
synPred
protected String
semPred
protected ExceptionSpec
exceptionSpec
protected Lookahead[]
cache
protected int
lookaheadDepth
protected Token
treeSpecifier
private boolean
doAutoGen
Constructors Summary
public Alternative()



      
    
public Alternative(AlternativeElement firstElement)

        addElement(firstElement);
    
Methods Summary
public voidaddElement(persistence.antlr.AlternativeElement e)

        // Link the element into the list
        if (head == null) {
            head = tail = e;
        }
        else {
            tail.next = e;
            tail = e;
        }
    
public booleanatStart()

        return head == null;
    
public booleangetAutoGen()

        // Don't build an AST if there is a tree-rewrite-specifier
        return doAutoGen && treeSpecifier == null;
    
public persistence.antlr.TokengetTreeSpecifier()

        return treeSpecifier;
    
public voidsetAutoGen(boolean doAutoGen_)

        doAutoGen = doAutoGen_;