Package org.jruby.ast

Class DotNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.DotNode

public class DotNode extends Node
Represents a range literal.
  • Constructor Details

    • DotNode

      public DotNode(int line, Node beginNode, Node endNode, boolean exclusive, boolean isLiteral)
  • 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
    • getBeginNode

      public Node getBeginNode()
      Gets the beginNode.
      Returns:
      Returns a Node
    • getEndNode

      public Node getEndNode()
      Gets the endNode.
      Returns:
      Returns a Node
    • isExclusive

      public boolean isExclusive()
      Gets the exclusive.
      Returns:
      Returns a boolean
    • isLiteral

      public boolean isLiteral()
      Is this a literal node. MRI has a literal node type and we currently don't. We provide this attribute so we can detect that this should be a literal to match MRI semantics of literal DOT nodes.
      Returns:
      true is literal
    • childNodes

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