public class StrNode extends Node implements ILiteralNode
| Modifier and Type | Field and Description |
|---|---|
private int |
codeRange |
private org.jruby.util.ByteList |
value |
EMPTY_LIST| Constructor and Description |
|---|
StrNode(ISourcePosition position,
org.jruby.util.ByteList value) |
StrNode(ISourcePosition position,
org.jruby.util.ByteList value,
int codeRange) |
StrNode(ISourcePosition position,
StrNode head,
StrNode tail) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
int |
getCodeRange()
Get the string's coderange.
|
NodeType |
getNodeType() |
org.jruby.util.ByteList |
getValue()
Gets the value.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final org.jruby.util.ByteList value
private final int codeRange
public StrNode(ISourcePosition position, org.jruby.util.ByteList value)
public StrNode(ISourcePosition position, org.jruby.util.ByteList value, int codeRange)
public StrNode(ISourcePosition position, StrNode head, StrNode tail)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public org.jruby.util.ByteList getValue()
public int getCodeRange()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)