org.apache.bcel.generic

Class ReturnaddressType

Implemented Interfaces:
java.io.Serializable

public class ReturnaddressType
extends Type

Returnaddress, the type JSR or JSR_W instructions push upon the stack. see vmspec2 ?3.3.3
Version:
$Id: ReturnaddressType.java 386056 2006-03-15 11:31:56Z tcurdt $
Author:
Enver Haase
See Also:
Serialized Form

Field Summary

static ReturnaddressType
NO_TARGET
private InstructionHandle
returnTarget

Fields inherited from class org.apache.bcel.generic.Type

BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, STRING, STRINGBUFFER, THROWABLE, UNKNOWN, VOID, consumed_chars, signature, type

Constructor Summary

ReturnaddressType()
A Returnaddress [that doesn't know where to return to].
ReturnaddressType(InstructionHandle returnTarget)
Creates a ReturnaddressType object with a target.

Method Summary

boolean
equals(Object rat)
Returns if the two Returnaddresses refer to the same target.
InstructionHandle
getTarget()
int
hashCode()

Methods inherited from class org.apache.bcel.generic.Type

equals, getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, hashCode, toString, unwrap, wrap

Field Details

NO_TARGET

public static final ReturnaddressType NO_TARGET

returnTarget

private InstructionHandle returnTarget

Constructor Details

ReturnaddressType

private ReturnaddressType()
A Returnaddress [that doesn't know where to return to].

ReturnaddressType

public ReturnaddressType(InstructionHandle returnTarget)
Creates a ReturnaddressType object with a target.

Method Details

equals

public boolean equals(Object rat)
Returns if the two Returnaddresses refer to the same target.
Overrides:
equals in interface Type

getTarget

public InstructionHandle getTarget()
Returns:
the target of this ReturnaddressType

hashCode

public int hashCode()
Overrides:
hashCode in interface Type
Returns:
a hash code value for the object.