Package org.jruby.ast
Class EvStrNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.EvStrNode
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.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.getBody()
Gets the evaluatedNode.Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
EvStrNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBody
Gets the evaluatedNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-