Package org.jruby.ast

Class PreExeNode

All Implemented Interfaces:
DefNode
Direct Known Subclasses:
PreExe19Node

public class PreExeNode extends IterNode
A pre-execution construction (BEGIN { ... }).
  • Constructor Details

    • PreExeNode

      public PreExeNode(int line, StaticScope scope, Node body, int endLine)
  • Method Details

    • getNodeType

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

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