|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.operand.Operand
org.jikesrvm.compilers.opt.ir.operand.TypeOperand
public final class TypeOperand
A TypeOperand represents a type. Used in checkcast, instanceof, new, etc. It will contain either a RVMType (if the type can be resolved at compile time) or a TypeReference (if the type cannot be resolved at compile time).
Operand,
RVMType,
TypeReference| Field Summary | |
|---|---|
private RVMType |
type
A type |
private TypeReference |
typeRef
The data type. |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
|
TypeOperand(RVMType typ)
Create a new type operand with the specified type. |
private |
TypeOperand(RVMType t,
TypeReference tr)
|
|
TypeOperand(TypeReference tr)
Create a new type operand with the specified type reference |
| 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. |
TypeReference |
getTypeRef()
|
RVMType |
getVMType()
|
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
String |
toString()
Returns the string representation of this operand. |
| 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, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final RVMType type
private final TypeReference typeRef
| Constructor Detail |
|---|
public TypeOperand(RVMType typ)
public TypeOperand(TypeReference tr)
private TypeOperand(RVMType t,
TypeReference tr)
| Method Detail |
|---|
public TypeReference getType()
TypeReference of the value represented by the operand.
getType in class Operandpublic TypeReference getTypeRef()
public RVMType getVMType()
public Operand copy()
this.
copy in class Operandthispublic boolean similar(Operand op)
similar in class Operandop - other operand
true if this and op
are semantically equivalent or false
if they are not.public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||