public class StringLiteral extends Operand
| Modifier and Type | Field and Description |
|---|---|
org.jruby.util.ByteList |
bytelist |
String |
string |
EMPTY_ARRAY| Constructor and Description |
|---|
StringLiteral(org.jruby.util.ByteList val) |
StringLiteral(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUsedVariables(List<Variable> l)
Append the list of variables used in this operand to the input list -- force every operand
to implement this because a missing implementation can cause bad failures.
|
Operand |
cloneForInlining(InlinerInfo ii) |
org.jruby.util.ByteList |
getByteList() |
String |
getString() |
boolean |
hasKnownValue()
Do we know the value of this operand at compile-time?
If we do then it may be possible to constant propagate (one case:
We also know it is also an ImmutableLiteral).
|
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, fetchCompileTimeArrayElement, getSimplifiedOperand, getValuepublic final org.jruby.util.ByteList bytelist
public final String string
public StringLiteral(org.jruby.util.ByteList val)
public StringLiteral(String s)
public boolean hasKnownValue()
OperandhasKnownValue in class Operandpublic void addUsedVariables(List<Variable> l)
OperandaddUsedVariables in class Operandpublic Operand cloneForInlining(InlinerInfo ii)
cloneForInlining in class Operandpublic Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp)
public org.jruby.util.ByteList getByteList()
public String getString()
Copyright © 2001–2024 JRuby. All rights reserved.