Class ASTArray


  • public class ASTArray
    extends java.lang.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)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      AST[] array  
      int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      ASTArray​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ASTArray add​(AST node)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • size

        public int size
      • array

        public AST[] array
    • Constructor Detail

      • ASTArray

        public ASTArray​(int capacity)