Package org.jruby.ast

Class TrueNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.TrueNode
All Implemented Interfaces:
SideEffectFree

public class TrueNode extends Node implements SideEffectFree
Represents 'true'.
  • Constructor Details

    • TrueNode

      public TrueNode(int line)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Specified by:
      getNodeType in class Node
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Specified by:
      accept in class Node
      Parameters:
      iVisitor - the visitor
    • childNodes

      public List<Node> childNodes()
      Specified by:
      childNodes in class Node
    • needsDefinitionCheck

      public boolean needsDefinitionCheck()
      Description copied from class: Node
      Check whether the given node is considered always "defined" or whether it has some form of definition check.
      Overrides:
      needsDefinitionCheck in class Node
      Returns:
      Whether the type of node represents a possibly undefined construct