public class Symbol extends ImmutableLiteral
Modifier and Type | Field and Description |
---|---|
static Symbol |
KW_REST_ARG_DUMMY |
EMPTY_ARRAY
Constructor and Description |
---|
Symbol(org.jruby.util.ByteList bytes) |
Symbol(java.lang.String name,
org.jcodings.Encoding encoding) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyPropagate()
Can we replace every use of a variable 'v' that contains the value of this operand
with the operand itself? This takes importance when there are at least two uses
of 'v' within this scope.
|
java.lang.Object |
createCacheObject(ThreadContext context)
Implementing class is responsible for constructing the cached value.
|
static Symbol |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
boolean |
equals(java.lang.Object other) |
org.jruby.util.ByteList |
getBytes() |
org.jcodings.Encoding |
getEncoding() |
OperandType |
getOperandType() |
java.lang.String |
getString() |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, cachedObject, cloneForInlining, hasKnownValue, isCached, retrieve
getSimplifiedOperand, getValue
public static final Symbol KW_REST_ARG_DUMMY
public Symbol(java.lang.String name, org.jcodings.Encoding encoding)
public Symbol(org.jruby.util.ByteList bytes)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public OperandType getOperandType()
getOperandType
in class Operand
public org.jruby.util.ByteList getBytes()
public java.lang.String getString()
public java.lang.Object createCacheObject(ThreadContext context)
ImmutableLiteral
createCacheObject
in class ImmutableLiteral
public boolean canCopyPropagate()
Operand
canCopyPropagate
in class ImmutableLiteral
public org.jcodings.Encoding getEncoding()
public java.lang.String toString()
toString
in class java.lang.Object
public void encode(IRWriterEncoder e)
public static Symbol decode(IRReaderDecoder d)
Copyright © 2001-2017 JRuby. All Rights Reserved.