Package org.jruby.ast
Class StrNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.StrNode
- All Implemented Interfaces:
LiteralValue
,SideEffectFree
,ILiteralNode
- Direct Known Subclasses:
FileNode
Representing a simple String literal.
-
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.boolean
int
Get the string's coderange.getValue()
Gets the value.int
hashCode()
literalValue
(Ruby runtime) void
setStringStyle
(StringStyle stringStyle) 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
-
StrNode
-
StrNode
-
StrNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
equals
-
hashCode
public int hashCode() -
getValue
Gets the value.- Returns:
- Returns a String
-
getCodeRange
public int getCodeRange()Get the string's coderange.- Returns:
- the string's coderange
-
childNodes
- Specified by:
childNodes
in classNode
-
getStringStyle
-
setStringStyle
-
literalValue
- Specified by:
literalValue
in interfaceLiteralValue
-