public class ContextMethodBuilder extends ExceptionMethodBuilder
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 and Description |
|---|
ContextMethodBuilder(String name,
String sig,
ClassFile cf,
int access,
int obj,
String type,
int ctx,
String ctype)
Constructor from signature.
|
ContextMethodBuilder(String name,
String sig,
ClassFile cf,
int obj,
String type,
int ctx,
String ctype)
Constructor from signature for public, final method.
|
ContextMethodBuilder(String name,
org.apache.bcel.generic.Type ret,
org.apache.bcel.generic.Type[] args,
ClassFile cf,
int access,
int obj,
String type,
int ctx,
String ctype)
Constructor with types specified.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFullName()
Construct fully-qualified class and method name for method under
construction.
|
boolean |
isStaticMethod()
Check if method is static.
|
void |
loadContext()
Append instruction to load context to stack.
|
void |
loadContext(String type)
Append instruction(s) to load context to stack as specified type.
|
void |
loadObject()
Append instruction to load object to stack.
|
void |
loadObject(String type)
Append instruction(s) to load object to stack as specified type.
|
void |
setObjectSlot(int slot)
Set current object slot.
|
void |
storeObject()
Append instruction to store object from stack.
|
defineSlot, freeSlot, getSlot, handleExceptionsaddException, addLocal, addMethod, addMethodExceptions, appendAASTORE, appendACONST_NULL, appendALOAD, appendARRAYLENGTH, appendASTORE, appendCall, appendCallInit, appendCallInterface, appendCallStatic, appendCallVirtual, appendCreateArray, appendCreateCast, appendCreateCast, appendCreateNew, appendDCMPG, appendDUP_X1, appendDUP, 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, 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, targetNextcomputeMethodHash, equals, getClassFile, makeAccessiblepublic ContextMethodBuilder(String name, org.apache.bcel.generic.Type ret, org.apache.bcel.generic.Type[] args, ClassFile cf, int access, int obj, String type, int ctx, String ctype)
name - method name to be builtret - method return typeargs - types of argumentscf - owning class file informationaccess - flags for method accessobj - variable slot for current object (negative value if to be
defined later)type - current object type as defined in method (null
if none)ctx - variable slot for marshalling/unmarshalling contextctype - context type as defined in methodpublic ContextMethodBuilder(String name, String sig, ClassFile cf, int access, int obj, String type, int ctx, String ctype)
name - method name to be builtsig - method signaturecf - owning class file informationaccess - flags for method accessobj - variable slot for current object (negative value if to be
defined later)type - current object typectx - variable slot for marshalling/unmarshalling contextctype - context type as defined in methodpublic ContextMethodBuilder(String name, String sig, ClassFile cf, int obj, String type, int ctx, String ctype)
name - method name to be builtsig - method signaturecf - owning class file informationobj - variable slot for current object (negative value if to be
defined later)type - current object typectx - variable slot for marshalling/unmarshalling contextctype - context type as defined in methodpublic void setObjectSlot(int slot)
slot - local variable slot for current objectpublic void loadObject()
public void storeObject()
public void loadObject(String type)
type - loaded type expected on stackpublic void loadContext()
public void loadContext(String type)
type - loaded type expected on stackpublic boolean isStaticMethod()
true if static, false if notpublic String getFullName()
Copyright © 2005–2016 jibx.org. All rights reserved.