public class FrozenString extends StringLiteral
bytelist, coderange, EMPTY_STRING, string
EMPTY_ARRAY
Constructor and Description |
---|
FrozenString(org.jruby.util.ByteList byteList,
int cr)
Used by persistence and by .freeze optimization
|
FrozenString(String s)
IRBuild.buildGetDefinition returns a frozen string and this is for all intern'd Java strings.
|
Modifier and Type | Method and Description |
---|---|
static FrozenString |
decode(IRReaderDecoder d) |
boolean |
equals(Object other) |
Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, cloneForInlining, encode, getByteList, getCodeRange, getString, hashCode, hasKnownValue
canCopyPropagate, getOperandType, getSimplifiedOperand, getValue
public FrozenString(org.jruby.util.ByteList byteList, int cr)
public FrozenString(String s)
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
retrieve
in class StringLiteral
public boolean equals(Object other)
equals
in class StringLiteral
public String toString()
toString
in class StringLiteral
public void visit(IRVisitor visitor)
visit
in class StringLiteral
public static FrozenString decode(IRReaderDecoder d)
Copyright © 2001-2015 JRuby. All Rights Reserved.