|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.HandlerInfo
This class represents a protected ("try") portion of block with an handler (catch) for a specified type of exception
| Field Summary | |
private InstructionAccessor |
end
|
private InstructionAccessor |
handler
|
private InstructionAccessor |
start
|
private ClassConstant |
thrown
|
| Constructor Summary | |
HandlerInfo(DataInput in,
ConstantPool cp,
Instruction[] insns)
Constructs a new exception handler info entry from a class file |
|
HandlerInfo(InstructionAccessor start,
InstructionAccessor end,
InstructionAccessor handler,
String thrown)
Constructs a new exception handler info entry |
|
| Method Summary | |
InstructionAccessor |
getEnd()
|
InstructionAccessor |
getHandler()
|
InstructionAccessor |
getStart()
|
String |
getThrown()
|
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
void |
setEnd(InstructionAccessor end)
|
void |
setHandler(InstructionAccessor handler)
|
void |
setStart(InstructionAccessor start)
|
void |
transformAccessors(AccessorTransformer transformer)
Transforms targets (deferences to actual instructions). |
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private InstructionAccessor start
private InstructionAccessor end
private InstructionAccessor handler
private ClassConstant thrown
| Constructor Detail |
public HandlerInfo(InstructionAccessor start,
InstructionAccessor end,
InstructionAccessor handler,
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(DataInput in,
ConstantPool cp,
Instruction[] insns)
throws IOException
in - the stream to read fromcp - the constant poolinsns - (sparse) array of instructions
IOException - an io problem has occured| Method Detail |
public void transformAccessors(AccessorTransformer transformer)
throws BadAccessorException
transformAccessors in interface AccessorContainertransformer - the transformer used to transform accessors
BadAccessorExceptionpublic void setStart(InstructionAccessor start)
public InstructionAccessor getStart()
public void setEnd(InstructionAccessor end)
public InstructionAccessor getEnd()
public void setHandler(InstructionAccessor handler)
public InstructionAccessor getHandler()
public String getThrown()
void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||