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
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, EMPTY_LIST, newline -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(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, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
body
-
-
Constructor Details
-
EvStrNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBody
Gets the evaluatedNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodesin classNode
-