| java.lang.Object org.jibx.binding.classes.BindingMethod org.jibx.binding.classes.MethodBuilder org.jibx.binding.classes.ExceptionMethodBuilder
All known Subclasses: org.jibx.binding.classes.ContextMethodBuilder,
ExceptionMethodBuilder | public class ExceptionMethodBuilder extends MethodBuilder (Code) | | Builder for simple methods that may just pass checked exceptions on to
caller.
author: Dennis M. Sosnoski version: 1.0 |
Constructor Summary | |
public | ExceptionMethodBuilder(String name, Type ret, Type[] args, ClassFile cf, int access) Constructor with types specified. | public | ExceptionMethodBuilder(String name, String sig, ClassFile cf, int access) Constructor from signature. | public | ExceptionMethodBuilder(String name, String sig, ClassFile cf) Constructor from signature for public, final method. |
Method Summary | |
public void | defineSlot(Object obj, Type type) Define local variable slot for object. | public void | freeSlot(Object obj) Free local variable slot for object. | public int | getSlot(Object obj) Check if local variable slot defined for object. | protected void | handleExceptions() Process accumulated exceptions. |
ExceptionMethodBuilder | public ExceptionMethodBuilder(String name, Type ret, Type[] args, ClassFile cf, int access) throws JiBXException(Code) | | Constructor with types specified.
Parameters: name - method name to be built Parameters: ret - method return type Parameters: args - types of arguments Parameters: cf - owning class file information Parameters: access - flags for method access throws: JiBXException - on error in initializing method construction |
ExceptionMethodBuilder | public ExceptionMethodBuilder(String name, String sig, ClassFile cf, int access) throws JiBXException(Code) | | Constructor from signature.
Parameters: name - method name to be built Parameters: sig - method signature Parameters: cf - owning class file information Parameters: access - flags for method access throws: JiBXException - on error in initializing method construction |
ExceptionMethodBuilder | public ExceptionMethodBuilder(String name, String sig, ClassFile cf) throws JiBXException(Code) | | Constructor from signature for public, final method.
Parameters: name - method name to be built Parameters: sig - method signature Parameters: cf - owning class file information throws: JiBXException - on error in initializing method construction |
defineSlot | public void defineSlot(Object obj, Type type)(Code) | | Define local variable slot for object. The current code in the method
must have the initial value for the variable on the stack
Parameters: obj - owning object of slot |
freeSlot | public void freeSlot(Object obj)(Code) | | Free local variable slot for object. This clears the usage of the slot
(if one has been defined for the object) so it can be reused for other
purposes.
Parameters: obj - owning object of slot |
getSlot | public int getSlot(Object obj)(Code) | | Check if local variable slot defined for object.
Parameters: obj - owning object of slot local variable slot assigned to object, or -1 ifnone |
handleExceptions | protected void handleExceptions() throws JiBXException(Code) | | Process accumulated exceptions. Just adds the checked exceptions that
may be thrown within the body to the list for this method, passing them
on to the caller for handling.
throws: JiBXException - on error in exception handling |
Methods inherited from org.jibx.binding.classes.MethodBuilder | public void addException(String name)(Code)(Java Doc) public int addLocal(String name, Type type)(Code)(Java Doc) public ClassItem addMethod() throws JiBXException(Code)(Java Doc) public void addMethodExceptions(ClassItem method)(Code)(Java Doc) public void appendAASTORE()(Code)(Java Doc) public void appendACONST_NULL()(Code)(Java Doc) public void appendALOAD(String type)(Code)(Java Doc) public void appendARRAYLENGTH()(Code)(Java Doc) public void appendASTORE(String type)(Code)(Java Doc) public void appendCall(ClassItem item)(Code)(Java Doc) public void appendCallInit(String name, String signature)(Code)(Java Doc) public void appendCallInterface(String method, String signature)(Code)(Java Doc) public void appendCallStatic(String method, String signature)(Code)(Java Doc) public void appendCallVirtual(String method, String signature)(Code)(Java Doc) public void appendCreateArray(String type)(Code)(Java Doc) public void appendCreateCast(String from, String to)(Code)(Java Doc) public void appendCreateCast(String to)(Code)(Java Doc) public void appendCreateNew(String name)(Code)(Java Doc) public void appendDCMPG()(Code)(Java Doc) public void appendDUP()(Code)(Java Doc) public void appendDUP2()(Code)(Java Doc) public void appendDUP_X1()(Code)(Java Doc) public void appendFCMPG()(Code)(Java Doc) public void appendGet(ClassItem item)(Code)(Java Doc) public void appendGetField(ClassItem item)(Code)(Java Doc) public void appendGetStatic(ClassItem item)(Code)(Java Doc) public void appendIASTORE()(Code)(Java Doc) public void appendICONST_0()(Code)(Java Doc) public void appendICONST_1()(Code)(Java Doc) public BranchWrapper appendIFEQ(Object src)(Code)(Java Doc) public BranchWrapper appendIFGE(Object src)(Code)(Java Doc) public BranchWrapper appendIFLT(Object src)(Code)(Java Doc) public BranchWrapper appendIFNE(Object src)(Code)(Java Doc) public BranchWrapper appendIFNONNULL(Object src)(Code)(Java Doc) public BranchWrapper appendIFNULL(Object src)(Code)(Java Doc) public BranchWrapper appendIF_ICMPNE(Object src)(Code)(Java Doc) public void appendISUB()(Code)(Java Doc) public void appendIXOR()(Code)(Java Doc) public void appendIncrementLocal(int inc, int slot)(Code)(Java Doc) public void appendInstanceOf(String to)(Code)(Java Doc) public void appendLCMP()(Code)(Java Doc) public void appendLoadConstant(int value)(Code)(Java Doc) public void appendLoadConstant(String value)(Code)(Java Doc) public void appendLoadConstant(Object value)(Code)(Java Doc) public void appendLoadLocal(int slot)(Code)(Java Doc) public void appendPOP()(Code)(Java Doc) public void appendPOP2()(Code)(Java Doc) public void appendPut(ClassItem item)(Code)(Java Doc) public void appendPutField(ClassItem item)(Code)(Java Doc) public void appendPutStatic(ClassItem item)(Code)(Java Doc) public void appendReturn()(Code)(Java Doc) public void appendReturn(Type type)(Code)(Java Doc) public void appendReturn(String type)(Code)(Java Doc) public void appendSWAP()(Code)(Java Doc) public void appendSWAP1For2()(Code)(Java Doc) public void appendStoreLocal(int slot)(Code)(Java Doc) public BranchTarget appendTargetACONST_NULL()(Code)(Java Doc) public BranchTarget appendTargetCreateNew(String name)(Code)(Java Doc) public BranchTarget appendTargetLoadConstant(int value)(Code)(Java Doc) public BranchTarget appendTargetLoadConstant(String value)(Code)(Java Doc) public BranchTarget appendTargetNOP()(Code)(Java Doc) public void appendThrow()(Code)(Java Doc) public BranchWrapper appendUnconditionalBranch(Object src)(Code)(Java Doc) public void codeComplete(boolean suffix) throws JiBXException(Code)(Java Doc) protected LocalVariableGen createLocal(String name, Type type)(Code)(Java Doc) public int getAccessFlags()(Code)(Java Doc) protected InstructionHandle getFirstInstruction()(Code)(Java Doc) public ClassItem getItem()(Code)(Java Doc) public Object getKeyValue(Object key)(Code)(Java Doc) protected InstructionHandle getLastInstruction()(Code)(Java Doc) public Method getMethod()(Code)(Java Doc) public String getName()(Code)(Java Doc) public String getSignature()(Code)(Java Doc) abstract protected void handleExceptions() throws JiBXException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void initStackState(BranchWrapper branch)(Code)(Java Doc) public void initStackState(BranchWrapper branch, int pop)(Code)(Java Doc) protected void initStackState(String[] types)(Code)(Java Doc) protected InstructionHandle internalAppendCreateNew(String name)(Code)(Java Doc) public boolean isStackTopLong()(Code)(Java Doc) public void setAccessFlags(int flags)(Code)(Java Doc) public Object setKeyValue(Object key, Object value)(Code)(Java Doc) final protected void setTarget(InstructionHandle inst)(Code)(Java Doc) public void targetNext(BranchWrapper branch)(Code)(Java Doc) public void targetNext(BranchWrapper[] branches)(Code)(Java Doc)
|
|
|