|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.HandlerInfo
This class represents a protected ("try") portion of block with an handler (catch) for a specified type of exception.
Constructor Summary | |
HandlerInfo(java.io.DataInput in,
ConstantPool cp,
Instruction[] insns)
Constructs a new exception handler info entry from a class file. |
|
HandlerInfo(InstructionAccessor start,
InstructionAccessor end,
InstructionAccessor handler,
java.lang.String thrown)
Constructs a new exception handler info entry. |
Method Summary | |
InstructionAccessor |
getEnd()
Returns the end of the protected area. |
InstructionAccessor |
getHandler()
Returns the handler of the protected area. |
InstructionAccessor |
getStart()
Returns the start of the protected area. |
java.lang.String |
getThrown()
Returns the thrown of the protected area. |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
void |
setEnd(InstructionAccessor end)
Sets the end of the protected area. |
void |
setHandler(InstructionAccessor handler)
Sets the handler of the protected area. |
void |
setStart(InstructionAccessor start)
Sets the start of the protected area. |
void |
transformAccessors(AccessorTransformer transformer)
Transforms targets (deferences to actual instructions). |
(package private) void |
write(ConstantPool cp,
java.io.DataOutput out)
Write this class into the the file (out) getting data position from the constant pool. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public HandlerInfo(InstructionAccessor start, InstructionAccessor end, InstructionAccessor handler, java.lang.String thrown)
start
- the beginning of the checked area (inclusive).end
- the end of the checked area (inclusive !).handler
- the entrypoint into the exception handling routine.thrown
- the exceptions handled by this routine.public HandlerInfo(java.io.DataInput in, ConstantPool cp, Instruction[] insns) throws java.io.IOException
in
- the stream to read fromcp
- the constant poolinsns
- (sparse) array of instructionsjava.io.IOException
- an io problem has occured.Method Detail |
public void transformAccessors(AccessorTransformer transformer) throws BadAccessorException
transformAccessors
in interface AccessorContainer
at.dms.classfile.AccessorContainer
transformer
- The transformer used to transform accessors.public void setStart(InstructionAccessor start)
public InstructionAccessor getStart()
public void setEnd(InstructionAccessor end)
public InstructionAccessor getEnd()
public void setHandler(InstructionAccessor handler)
public InstructionAccessor getHandler()
public java.lang.String getThrown()
void resolveConstants(ConstantPool cp)
cp
- the constant pool for this class.void write(ConstantPool cp, java.io.DataOutput out) throws java.io.IOException
cp
- the constant pool that contain all data.out
- the file where to write this object info.java.io.IOException
- an io problem has occured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |