public class ExceptionInfo extends Object implements VisitorAccepter
| Modifier and Type | Field and Description |
|---|---|
int |
u2catchType |
int |
u2endPC |
int |
u2handlerPC |
int |
u2startPC |
Object |
visitorInfo
An extra field in which visitors can store information.
|
| Constructor and Description |
|---|
ExceptionInfo()
Creates an uninitialized ExceptionInfo.
|
ExceptionInfo(int u2startPC,
int u2endPC,
int u2handlerPC,
int u2catchType)
Creates an ExceptionInfo with the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
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(Object visitorInfo)
Sets the visitor information of the visitor accepter.
|
public int u2startPC
public int u2endPC
public int u2handlerPC
public int u2catchType
public Object visitorInfo
public ExceptionInfo()
public ExceptionInfo(int u2startPC,
int u2endPC,
int u2handlerPC,
int u2catchType)
public boolean isApplicable(int instructionOffset)
public boolean isApplicable(int startOffset,
int endOffset)
public Object getVisitorInfo()
VisitorAcceptergetVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAcceptersetVisitorInfo in interface VisitorAccepterCopyright © 2015. All Rights Reserved.