Examples of ExceptionsAttribute


Examples of org.apache.harmony.unpack200.bytecode.ExceptionsAttribute

                    CPClass[] exceptionClasses = new CPClass[n];
                    for (int k = 0; k < n; k++) {
                        exceptionClasses[k] = cpBands
                                .cpClassValue(exceptions[k]);
                    }
                    methodAttributes[i][j].add(new ExceptionsAttribute(
                            exceptionClasses));
                    methodExceptionsIndex++;
                }
                if (methodSignatureLayout.matches(flag)) {
                    // We've got a signature attribute
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

        if (exceptAttr != null) {
            affirm((exceptAttr.getExceptions().size()
                    == new HashSet(exceptAttr.getExceptions()).size()),
                   "Exception attribute contains duplicate exceptions.");
           
            final ExceptionsAttribute foundExceptAttr
                = method.exceptionsAttribute();
            if (foundExceptAttr == null) {
                // add the exception attribute
                final AttributeVector methodAttrs = method.attributes();
                affirm(methodAttrs != null);
                methodAttrs.addElement(exceptAttr);
            } else {
                // add those exceptions not already present
                final List foundEx = foundExceptAttr.getExceptions();
                final List newEx = exceptAttr.getExceptions();
                newEx.removeAll(foundEx);
                foundEx.addAll(newEx);
            }
        }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addJDOClone()
    {
        final String methodName = "";
        final String methodSig = "()Ljava/lang/Object;";
        final int accessFlags = 0;
        final ExceptionsAttribute exceptAttr
            = new ExceptionsAttribute(
                pool.addUtf8(ExceptionsAttribute.expectedAttrName),
                pool.addClass("java/lang/CloneNotSupportedException"));

        // begin of method body
        final InsnTarget begin = new InsnTarget();
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

                                           final String methodSig,
                                           final int accessFlags)
    {
        // assumed nonstatic call; otherwise subtract 'this' from maxStack
        affirm((accessFlags & ACCStatic) == 0);
        final ExceptionsAttribute exceptAttr = null;

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

                              final String methodSig,
                              final int accessFlags)
    {
        // assumed nonstatic call; otherwise subtract 'this' from maxStack
        affirm((accessFlags & ACCStatic) == 0);
        final ExceptionsAttribute exceptAttr = null;

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addJDOReplaceStateManager()
    {
        final String methodName = JDO_PC_jdoReplaceStateManager_Name;
        final String methodSig = JDO_PC_jdoReplaceStateManager_Sig;
        final int accessFlags = JDO_PC_jdoReplaceStateManager_Mods;
        final ExceptionsAttribute exceptAttr = null;

        //^olsen: exceptAttr != null ???

        // begin of method body
        final InsnTarget begin = new InsnTarget();
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addJDOReplaceFlags()
    {
        final String methodName = JDO_PC_jdoReplaceFlags_Name;
        final String methodSig = JDO_PC_jdoReplaceFlags_Sig;
        final int accessFlags = JDO_PC_jdoReplaceFlags_Mods;
        final ExceptionsAttribute exceptAttr = null;

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addJDOMakeDirtyMethod()
    {
        final String methodName = JDO_PC_jdoMakeDirty_Name;
        final String methodSig = JDO_PC_jdoMakeDirty_Sig;
        final int accessFlags = JDO_PC_jdoMakeDirty_Mods;
        final ExceptionsAttribute exceptAttr = null;

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addJDOPreSerializeMethod()
    {
        final String methodName = JDO_PC_jdoPreSerialize_Name;
        final String methodSig = JDO_PC_jdoPreSerialize_Sig;
        final int accessFlags = JDO_PC_jdoPreSerialize_Mods;
        final ExceptionsAttribute exceptAttr = null;

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

    public void addWriteObjectMethod()
    {
        final String methodName = JAVA_Object_writeObject_Name;
        final String methodSig = JAVA_Object_writeObject_Sig;
        final int accessFlags = JAVA_Object_writeObject_Mods;
        final ExceptionsAttribute exceptAttr
            = new ExceptionsAttribute(
                pool.addUtf8(ExceptionsAttribute.expectedAttrName),
                pool.addClass("java/io/IOException"));
       
        // begin of method body
        final InsnTarget begin = new InsnTarget();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.