Class ASTListNode<T>

java.lang.Object
io.github.protasm.jvmud.compiler.parser.ast.ASTNode
io.github.protasm.jvmud.compiler.parser.ast.ASTListNode<T>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
ASTArguments, ASTParameters

public abstract non-sealed class ASTListNode<T> extends ASTNode implements Iterable<T>
  • Field Details

    • nodes

      protected List<T> nodes
  • Constructor Details

    • ASTListNode

      public ASTListNode(int line)
    • ASTListNode

      public ASTListNode(int line, List<T> nodes)
  • Method Details

    • nodes

      public List<T> nodes()
    • add

      public void add(T node)
    • get

      public T get(int i)
    • size

      public int size()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>