| Modifier and Type | Field and Description |
|---|---|
| public final ByteList | |
| public final int | |
| public final String | |
| public final int | |
| public String |
| Access | Constructor and Description |
|---|---|
| public | FrozenString(ByteList bytelist, int coderange, String file, int line)
Used by persistence and by .freeze optimization |
| public | |
| public | FrozenString(String s)
IRBuild.buildGetDefinition returns a frozen string and this is for all intern'd Java strings. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Operand | |
| public RubyString | createCacheObject(ThreadContext context)
Implements abstract org. Implementing class is responsible for constructing the cached value. |
| public static FrozenString | |
| 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 int | |
| public String | |
| public int | |
| public OperandType | |
| public String | |
| public int | |
| public boolean | hasKnownValue()
Overrides org. Do we know the value of this operand at compile-time? |
| private static String | |
| public boolean | isCached()
Overrides org. Has this object already been cached? |
| 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 |
| bytelist | back to summary |
|---|---|
| public final ByteList bytelist | |
| coderange | back to summary |
|---|---|
| public final int coderange | |
| file | back to summary |
|---|---|
| public final String file | |
| line | back to summary |
|---|---|
| public final int line | |
| string | back to summary |
|---|---|
| public String string | |
| FrozenString | back to summary |
|---|---|
| public FrozenString(ByteList bytelist, int coderange, String file, int line) Used by persistence and by .freeze optimization | |
| FrozenString | back to summary |
|---|---|
| public FrozenString(RubySymbol symbol) | |
| FrozenString | back to summary |
|---|---|
| public FrozenString(String s) IRBuild.buildGetDefinition returns a frozen string and this is for all intern'd Java strings. | |
| FrozenString | back to summary |
|---|---|
| protected FrozenString(ByteList byteList) | |
| cloneForInlining | back to summary |
|---|---|
| public Operand cloneForInlining(CloneInfo ii) Overrides org.
| |
| createCacheObject | back to summary |
|---|---|
| public RubyString createCacheObject(ThreadContext context) Implements abstract org. Doc from org. Implementing class is responsible for constructing the cached value.
| |
| decode | back to summary |
|---|---|
| public static FrozenString 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. | |
| getByteList | back to summary |
|---|---|
| public ByteList getByteList() Implements org. | |
| getCodeRange | back to summary |
|---|---|
| public int getCodeRange() Implements org. | |
| getFile | back to summary |
|---|---|
| public String getFile() | |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getOperandType | back to summary |
|---|---|
| public OperandType getOperandType() Implements abstract org.
| |
| getString | back to summary |
|---|---|
| public String getString() Implements org. | |
| 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
| |
| hasKnownValue | back to summary |
|---|---|
| public boolean hasKnownValue() Overrides org. Doc from org. 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).
| |
| internedStringFromByteList | back to summary |
|---|---|
| private static String internedStringFromByteList(ByteList val) | |
| isCached | back to summary |
|---|---|
| public boolean isCached() Overrides org. Doc from org. Has this object already been cached?
| |
| 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.
| |