proguard.classfile.attribute
Class ExceptionInfo

java.lang.Object
  extended by proguard.classfile.attribute.ExceptionInfo
All Implemented Interfaces:
VisitorAccepter

public class ExceptionInfo
extends java.lang.Object
implements VisitorAccepter

Representation of an Exception table entry.


Field Summary
 int u2catchType
           
 int u2endPC
           
 int u2handlerPC
           
 int u2startPC
           
 java.lang.Object visitorInfo
          An extra field in which visitors can store information.
 
Constructor Summary
ExceptionInfo()
          Creates an uninitialized ExceptionInfo.
ExceptionInfo(int u2startPC, int u2endPC, int u2handlerPC, int u2catchType)
          Creates an ExceptionInfo with the given properties.
 
Method Summary
 java.lang.Object getVisitorInfo()
          Gets the visitor information of the visitor accepter.
 boolean isApplicable(int instructionOffset)
          Returns whether the exception's try block contains the instruction at the given offset.
 boolean isApplicable(int startOffset, int endOffset)
          Returns whether the exception's try block overlaps with the specified block of instructions.
 void setVisitorInfo(java.lang.Object visitorInfo)
          Sets the visitor information of the visitor accepter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u2startPC

public int u2startPC

u2endPC

public int u2endPC

u2handlerPC

public int u2handlerPC

u2catchType

public int u2catchType

visitorInfo

public java.lang.Object visitorInfo
An extra field in which visitors can store information.

Constructor Detail

ExceptionInfo

public ExceptionInfo()
Creates an uninitialized ExceptionInfo.


ExceptionInfo

public ExceptionInfo(int u2startPC,
                     int u2endPC,
                     int u2handlerPC,
                     int u2catchType)
Creates an ExceptionInfo with the given properties.

Method Detail

isApplicable

public boolean isApplicable(int instructionOffset)
Returns whether the exception's try block contains the instruction at the given offset.


isApplicable

public boolean isApplicable(int startOffset,
                            int endOffset)
Returns whether the exception's try block overlaps with the specified block of instructions.


getVisitorInfo

public java.lang.Object getVisitorInfo()
Description copied from interface: VisitorAccepter
Gets the visitor information of the visitor accepter.

Specified by:
getVisitorInfo in interface VisitorAccepter

setVisitorInfo

public void setVisitorInfo(java.lang.Object visitorInfo)
Description copied from interface: VisitorAccepter
Sets the visitor information of the visitor accepter.

Specified by:
setVisitorInfo in interface VisitorAccepter