FileDocCategorySizeDatePackage
ReturnaddressType.javaAPI DocJava SE 6 API4080Tue Jun 10 00:22:22 BST 2008com.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.2.1 2005/07/31 23:44:52 jeffsuttor 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;