Package org.apache.jdo.impl.enhancer.classfile

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


    public void addJDOClearMethod()
    {
        final String methodName = "";
        final String methodSig = "()V";
        final int accessFlags = 0;
        final ExceptionsAttribute exceptAttr = null;

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


    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

                                           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

                              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

    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

    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

    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

    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

    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

    /**
     * Adds a call to jdoPreSerialize as first statement to the existing method.
     */
    public void addJDOPreSerializeCall(String methodName, String methodSig)
    {
        final ExceptionsAttribute exceptAttr = null;

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

TOP

Related Classes of org.apache.jdo.impl.enhancer.classfile.ExceptionsAttribute

Copyright © 2018 www.massapicom. 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.