Package org.jruby.ast

Class EvStrNode

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

public class EvStrNode extends Node
Represents an #{} expression in a string. This Node is always a subnode of a DStrNode, DXStrNode or a DRegexpNode. Before this Node is evaluated it contains the code as a String (value). After the first evaluation this String is parsed into the evaluatedNode Node.
  • Constructor Details

    • EvStrNode

      public EvStrNode(int line, Node body)
  • 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
    • getBody

      public Node getBody()
      Gets the evaluatedNode.
      Returns:
      Returns a Node
    • childNodes

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