| Modifier and Type | Field and Description |
|---|---|
| public static final Symbol | |
| private final RubySymbol |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCopyPropagate()
Overrides org. Can we replace every use of a variable 'v' that contains the value of this operand with the operand itself? |
| public Object | createCacheObject(ThreadContext context)
Implements abstract org. Implementing class is responsible for constructing the cached value. |
| public static Symbol | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ByteList | |
| public Encoding | |
| public OperandType | |
| public String | |
| public RubySymbol | |
| public int | |
| public boolean | isTruthyImmediate()
Overrides org. Returns true if this is an immediate value that will always be considered truthy (true, numbers, etc) |
| public String | |
| public void |
| KW_REST_ARG_DUMMY | back to summary |
|---|---|
| public static final Symbol KW_REST_ARG_DUMMY | |
| symbol | back to summary |
|---|---|
| private final RubySymbol symbol | |
| Symbol | back to summary |
|---|---|
| public Symbol(RubySymbol symbol) | |
| canCopyPropagate | back to summary |
|---|---|
| public boolean canCopyPropagate() Overrides org. Doc from org. 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. Ex: v = [1,2,3]; x = v; y = v In this case, we cannot replace the occurrences of 'v' because we would then get x = [1,2,3]; y = [1,2,3] which would then result in two different array objects being constructed instead of a single one.
| |
| createCacheObject | back to summary |
|---|---|
| public Object createCacheObject(ThreadContext context) Implements abstract org. Doc from org. Implementing class is responsible for constructing the cached value.
| |
| decode | back to summary |
|---|---|
| public static Symbol decode(IRReaderDecoder d) | |
| encode | back to summary |
|---|---|
| public void encode(IRWriterEncoder e) Overrides org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBytes | back to summary |
|---|---|
| public ByteList getBytes() | |
| getEncoding | back to summary |
|---|---|
| public Encoding getEncoding() | |
| getOperandType | back to summary |
|---|---|
| public OperandType getOperandType() Implements abstract org.
| |
| getString | back to summary |
|---|---|
| public String getString() Implements org. | |
| getSymbol | back to summary |
|---|---|
| public RubySymbol getSymbol() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isTruthyImmediate | back to summary |
|---|---|
| public boolean isTruthyImmediate() Overrides org. Doc from org. Returns true if this is an immediate value that will always be considered truthy (true, numbers, etc)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| visit | back to summary |
|---|---|
| public void visit(IRVisitor visitor) Overrides org.
| |