public final class ReturnAddress extends java.lang.Object implements TypeBearer
| Constructor and Description |
|---|
ReturnAddress(int subroutineAddress)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
getBasicFrameType()
Gets the basic type corresponding to this instance's frame type.
|
int |
getBasicType()
Gets the basic type corresponding to this instance.
|
TypeBearer |
getFrameType()
Gets the frame type corresponding to this type.
|
int |
getSubroutineAddress()
Gets the subroutine address.
|
Type |
getType()
Gets the type associated with this instance.
|
int |
hashCode() |
boolean |
isConstant()
Returns whether this instance represents a constant value.
|
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
public ReturnAddress(int subroutineAddress)
subroutineAddress - >= 0; the start address of the
subroutine being returned frompublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHuman()
toString().public Type getType()
getType in interface TypeBearernon-null; the typepublic TypeBearer getFrameType()
this, except if Type.isIntlike() on the underlying
type returns true but the underlying type is not in
fact Type.INT, in which case this method returns an instance
whose underlying type is INT.getFrameType in interface TypeBearernon-null; the frame type for this instancepublic int getBasicType()
getBasicType in interface TypeBearerBT_* constants
defined by Typepublic int getBasicFrameType()
getFrameType().getBasicType(), and
is the same as calling getFrameType() unless this
instance is an int-like type, in which case this method returns
BT_INT.getBasicFrameType in interface TypeBearerBT_* constants
defined by TypeTypeBearer.getBasicType(),
TypeBearer.getFrameType()public boolean isConstant()
isConstant in interface TypeBearertrue if this instance represents a constant value
and false if notpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getSubroutineAddress()
>= 0; the subroutine addressCopyright © 2020. All Rights Reserved.