FileDocCategorySizeDatePackage
ASTArray.javaAPI DocGlassfish v2 API662Wed Aug 30 15:34:14 BST 2006persistence.antlr.collections.impl

ASTArray

public class ASTArray extends Object
ASTArray is a class that allows ANTLR to generate code that can create and initialize an array in one expression, like: (new ASTArray(3)).add(x).add(y).add(z)

Fields Summary
public int
size
public AST[]
array
Constructors Summary
public ASTArray(int capacity)



       
        array = new AST[capacity];
    
Methods Summary
public persistence.antlr.collections.impl.ASTArrayadd(persistence.antlr.collections.AST node)

        array[size++] = node;
        return this;