FileDocCategorySizeDatePackage
ReturnaddressType.javaAPI DocJava SE 5 API4083Fri Aug 26 14:55:24 BST 2005com.sun.org.apache.bcel.internal.generic

ReturnaddressType

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,v 1.1.1.1 2001/10/29 20:00:26 jvanzyl Exp $
author
Enver Haase

Fields Summary
public static final ReturnaddressType
NO_TARGET
private InstructionHandle
returnTarget
Constructors Summary
private ReturnaddressType()
A Returnaddress [that doesn't know where to return to].

 
              
   
    super(Constants.T_ADDRESS, "<return address>");
  
public ReturnaddressType(InstructionHandle returnTarget)
Creates a ReturnaddressType object with a target.

    super(Constants.T_ADDRESS, "<return address targeting "+returnTarget+">");
  	this.returnTarget = returnTarget;
  
Methods Summary
public booleanequals(java.lang.Object rat)
Returns if the two Returnaddresses refer to the same target.

    if(!(rat instanceof ReturnaddressType))
      return false;

    return ((ReturnaddressType)rat).returnTarget.equals(this.returnTarget);
  
public com.sun.org.apache.bcel.internal.generic.InstructionHandlegetTarget()

return
the target of this ReturnaddressType

    return returnTarget;