public class StringLiteral extends Operand
Modifier and Type | Field and Description |
---|---|
org.jruby.util.ByteList |
bytelist |
java.lang.String |
string |
EMPTY_ARRAY
Constructor and Description |
---|
StringLiteral(org.jruby.util.ByteList val) |
StringLiteral(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
addUsedVariables(java.util.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() |
java.lang.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).
|
java.lang.Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
java.lang.Object[] temp) |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
canCopyPropagate, fetchCompileTimeArrayElement, getSimplifiedOperand, getValue
public final org.jruby.util.ByteList bytelist
public final java.lang.String string
public StringLiteral(org.jruby.util.ByteList val)
public StringLiteral(java.lang.String s)
public boolean hasKnownValue()
Operand
hasKnownValue
in class Operand
public void addUsedVariables(java.util.List<Variable> l)
Operand
addUsedVariables
in class Operand
public Operand cloneForInlining(InlinerInfo ii)
cloneForInlining
in class Operand
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, java.lang.Object[] temp)
public org.jruby.util.ByteList getByteList()
public java.lang.String getString()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.