Package org.jruby.ast

Class ArrayNode

All Implemented Interfaces:
Iterable<Node>, ILiteralNode

public class ArrayNode extends ListNode implements ILiteralNode
Represents an array. This could be an array literal, quoted words or some args stuff.
  • Constructor Details

    • ArrayNode

      public ArrayNode(int line, Node firstNode)
    • ArrayNode

      public ArrayNode(int line)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Overrides:
      getNodeType in class ListNode
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Overrides:
      accept in class ListNode
      Parameters:
      iVisitor - the visitor