ContextMethodBuilderpublic class ExceptionMethodBuilder extends MethodBuilder
| Modifier and Type | Field | Description |
|---|---|---|
private java.util.HashMap |
m_slotMap |
Map for object to variable assignments.
|
EXCEPTION_CONSTRUCTOR_SIGNATURE1, EXCEPTION_CONSTRUCTOR_SIGNATURE2, FRAMEWORK_EXCEPTION_CLASS, m_exceptions, m_generator, m_hashCode, m_instructionBuilder, m_item, m_method, m_targetBranches, m_valueMap, s_argNameLists, SYNTHETIC_ACCESS_FLAG| Constructor | Description |
|---|---|
ExceptionMethodBuilder(java.lang.String name,
java.lang.String sig,
ClassFile cf) |
Constructor from signature for public, final method.
|
ExceptionMethodBuilder(java.lang.String name,
java.lang.String sig,
ClassFile cf,
int access) |
Constructor from signature.
|
ExceptionMethodBuilder(java.lang.String name,
Type ret,
Type[] args,
ClassFile cf,
int access) |
Constructor with types specified.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
defineSlot(java.lang.Object obj,
Type type) |
Define local variable slot for object.
|
void |
freeSlot(java.lang.Object obj) |
Free local variable slot for object.
|
int |
getSlot(java.lang.Object obj) |
Check if local variable slot defined for object.
|
protected void |
handleExceptions() |
Process accumulated exceptions.
|
computeMethodHash, equals, getClassFile, makeAccessibleaddException, addLocal, addMethod, addMethodExceptions, appendAASTORE, appendACONST_NULL, appendALOAD, appendARRAYLENGTH, appendASTORE, appendCall, appendCallInit, appendCallInterface, appendCallStatic, appendCallVirtual, appendCreateArray, appendCreateCast, appendCreateCast, appendCreateNew, appendDCMPG, appendDUP, appendDUP_X1, appendDUP2, appendFCMPG, appendGet, appendGetField, appendGetStatic, appendIASTORE, appendICONST_0, appendICONST_1, appendIF_ICMPNE, appendIFEQ, appendIFGE, appendIFLT, appendIFNE, appendIFNONNULL, appendIFNULL, appendIncrementLocal, appendInstanceOf, appendISUB, appendIXOR, appendLCMP, appendLoadConstant, appendLoadConstant, appendLoadConstant, appendLoadLocal, appendPOP, appendPOP2, appendPut, appendPutField, appendPutStatic, appendReturn, appendReturn, appendStoreLocal, appendSWAP, appendSWAP1For2, appendTargetACONST_NULL, appendTargetCreateNew, appendTargetLoadConstant, appendTargetLoadConstant, appendTargetNOP, appendThrow, appendUnconditionalBranch, codeComplete, createLocal, getAccessFlags, getFirstInstruction, getItem, getKeyValue, getLastInstruction, getMethod, getName, getSignature, hashCode, initStackState, initStackState, initStackState, internalAppendCreateNew, isStackTopLong, setAccessFlags, setKeyValue, setTarget, targetNext, targetNextpublic ExceptionMethodBuilder(java.lang.String name,
Type ret,
Type[] args,
ClassFile cf,
int access)
name - method name to be builtret - method return typeargs - types of argumentscf - owning class file informationaccess - flags for method accesspublic ExceptionMethodBuilder(java.lang.String name,
java.lang.String sig,
ClassFile cf,
int access)
name - method name to be builtsig - method signaturecf - owning class file informationaccess - flags for method accesspublic ExceptionMethodBuilder(java.lang.String name,
java.lang.String sig,
ClassFile cf)
name - method name to be builtsig - method signaturecf - owning class file informationpublic int defineSlot(java.lang.Object obj,
Type type)
obj - owning object of slottype - variable typepublic int getSlot(java.lang.Object obj)
obj - owning object of slot-1 if
nonepublic void freeSlot(java.lang.Object obj)
obj - owning object of slotprotected void handleExceptions()
handleExceptions in class MethodBuilder