Top Fields Constructors Methods
org.jruby.ir.operands

public Class ChilledString

extends MutableString
implements Stringable, StringLiteral
Class Inheritance
All Implemented Interfaces
org.jruby.ir.operands.StringLiteral, org.jruby.ir.operands.Stringable
Imports
org.jruby.api.Access, org.jruby.ir.IRVisitor, org.jruby.ir.persistence.IRReaderDecoder, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList

Field Summary

Inherited from org.jruby.ir.operands.MutableString:
EMPTY_STRINGfrozenString

Constructor Summary

AccessConstructor and Description
public
ChilledString(ByteList bytelist, int coderange, String file, int line)

Used by persistence and by .freeze optimization

public

Method Summary

Modifier and TypeMethod and Description
public static ChilledString
public boolean
equals(Object
the reference object with which to compare.
other
)

Overrides org.jruby.ir.operands.MutableString.equals.

Indicates whether some other object is "equal to" this one.

public OperandType
public Object
public String
toString()

Overrides org.jruby.ir.operands.MutableString.toString.

Returns a string representation of the object.

public void
Inherited from org.jruby.ir.operands.MutableString:
addUsedVariablescloneForInliningencodegetByteListgetCodeRangegetStringhashCodehasKnownValue

Constructor Detail

ChilledStringback to summary
public ChilledString(ByteList bytelist, int coderange, String file, int line)

Used by persistence and by .freeze optimization

ChilledStringback to summary
public ChilledString(FrozenString frozenString)

Method Detail

decodeback to summary
public static ChilledString decode(IRReaderDecoder d)

Hides org.jruby.ir.operands.MutableString.decode.

equalsback to summary
public boolean equals(Object other)

Overrides org.jruby.ir.operands.MutableString.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

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.

Parameters
other:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getOperandTypeback to summary
public OperandType getOperandType()

Overrides org.jruby.ir.operands.MutableString.getOperandType.

Annotations
@Override
retrieveback to summary
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)

Overrides org.jruby.ir.operands.MutableString.retrieve.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.jruby.ir.operands.MutableString.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.operands.MutableString.visit.

Annotations
@Override