org.jikesrvm.compilers.opt.ir.operand
Class StringConstantOperand

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ir.operand.Operand
      extended by org.jikesrvm.compilers.opt.ir.operand.ConstantOperand
          extended by org.jikesrvm.compilers.opt.ir.operand.ObjectConstantOperand
              extended by org.jikesrvm.compilers.opt.ir.operand.StringConstantOperand

public final class StringConstantOperand
extends ObjectConstantOperand

Represents a constant string operand.

See Also:
Operand

Field Summary
 
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.ObjectConstantOperand
offset, value
 
Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand
instruction
 
Constructor Summary
StringConstantOperand(String v, Offset i)
          Construct a new string constant operand
 
Method Summary
 Operand copy()
          Return a new operand that is semantically equivalent to this.
 TypeReference getType()
          Return the TypeReference of the value represented by the operand.
 String toString()
          Returns the string representation of this operand.
 
Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.ObjectConstantOperand
isMovableObjectConstant, isRef, similar
 
Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isNullConstant, isObjectConstant, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringConstantOperand

public StringConstantOperand(String v,
                             Offset i)
Construct a new string constant operand

Parameters:
v - the string constant
i - JTOC offset of the string constant
Method Detail

copy

public Operand copy()
Description copied from class: Operand
Return a new operand that is semantically equivalent to this.

Overrides:
copy in class ObjectConstantOperand
Returns:
a copy of this

getType

public TypeReference getType()
Description copied from class: Operand
Return the TypeReference of the value represented by the operand.

Overrides:
getType in class ObjectConstantOperand
Returns:
TypeReference.JavaLangString

toString

public String toString()
Returns the string representation of this operand.

Overrides:
toString in class ObjectConstantOperand
Returns:
a string representation of this operand.