|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.classes.BindingMethod
org.jibx.binding.classes.MethodBuilder
org.jibx.binding.classes.ExceptionMethodBuilder
public class ExceptionMethodBuilder
Builder for simple methods that may just pass checked exceptions on to caller.
Field Summary | |
---|---|
private java.util.HashMap |
m_slotMap
Map for object to variable assignments. |
Fields inherited from class org.jibx.binding.classes.MethodBuilder |
---|
EMPTY_STRING_ARRAY, 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 |
Constructor Summary | |
---|---|
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,
org.apache.bcel.generic.Type ret,
org.apache.bcel.generic.Type[] args,
ClassFile cf,
int access)
Constructor with types specified. |
Method Summary | |
---|---|
void |
defineSlot(java.lang.Object obj,
org.apache.bcel.generic.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. |
Methods inherited from class org.jibx.binding.classes.BindingMethod |
---|
computeMethodHash, equals, getClassFile, makeAccessible |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap m_slotMap
Constructor Detail |
---|
public ExceptionMethodBuilder(java.lang.String name, org.apache.bcel.generic.Type ret, org.apache.bcel.generic.Type[] args, ClassFile cf, int access) throws JiBXException
name
- method name to be builtret
- method return typeargs
- types of argumentscf
- owning class file informationaccess
- flags for method access
JiBXException
- on error in initializing method constructionpublic ExceptionMethodBuilder(java.lang.String name, java.lang.String sig, ClassFile cf, int access) throws JiBXException
name
- method name to be builtsig
- method signaturecf
- owning class file informationaccess
- flags for method access
JiBXException
- on error in initializing method constructionpublic ExceptionMethodBuilder(java.lang.String name, java.lang.String sig, ClassFile cf) throws JiBXException
name
- method name to be builtsig
- method signaturecf
- owning class file information
JiBXException
- on error in initializing method constructionMethod Detail |
---|
public void defineSlot(java.lang.Object obj, org.apache.bcel.generic.Type type)
obj
- owning object of slotpublic 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() throws JiBXException
handleExceptions
in class MethodBuilder
JiBXException
- on error in exception handling
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |