Package org.jibx.binding.classes

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendReturn()


            CLASSLIST_METHOD_SIGNATURE);
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], m_factoryClass,
            Constants.ACC_PRIVATE|Constants.ACC_STATIC);
        codegenString(buildClassNamesBlob(refs), mb);
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        mb.addMethod();
        m_factoryClass.codeComplete();
    }
View Full Code Here


            } else {
                break;
            }
        }
        xb.appendICONST_0();
        xb.appendReturn("int");
        for (int i = 0; i < ifmatches.size(); i++) {
            xb.targetNext((BranchWrapper)ifmatches.get(i));
        }
        xb.appendICONST_1();
        xb.appendReturn("int");
View Full Code Here

        xb.appendReturn("int");
        for (int i = 0; i < ifmatches.size(); i++) {
            xb.targetNext((BranchWrapper)ifmatches.get(i));
        }
        xb.appendICONST_1();
        xb.appendReturn("int");
        xb.codeComplete(false);
        xb.addMethod();
    }

    /**
 
View Full Code Here

        // add private method to return binding classes blob (replaced later)
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], cf,
            Constants.ACC_PRIVATE|Constants.ACC_STATIC);
        mb.appendACONST_NULL();
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        ClassItem clasblobmeth = mb.addMethod();
       
        // add the private constructor method
        mb = new ExceptionMethodBuilder("<init>", Type.VOID, new Type[0], cf,
View Full Code Here

     
      // generate and add get mapping name method
      ExceptionMethodBuilder xb = new ExceptionMethodBuilder
            (GETNAME_METHODNAME, GETNAME_SIGNATURE, cf, Constants.ACC_PUBLIC);
      xb.appendLoadConstant(cf.getName());
      xb.appendReturn("java.lang.String");
      clas.getUniqueNamed(xb);
     
      // add the interface to class
      clas.getClassFile().addInterface(IMARSHALLABLE_INTERFACE);
  }
View Full Code Here

       
        // generate and add get mapping name method
        ExceptionMethodBuilder xb = new ExceptionMethodBuilder
            (GETNAME_METHODNAME, GETNAME_SIGNATURE, cf, Constants.ACC_PUBLIC);
        xb.appendLoadConstant(cf.getName());
        xb.appendReturn("java.lang.String");
        clas.getUniqueNamed(xb);
       
        // add the interface to class
      clas.getClassFile().addInterface(IUNMARSHALLABLE_INTERFACE);
  }
View Full Code Here

            mb.appendLoadLocal(2);
            mb.appendPutField(srcline);
            mb.appendLoadLocal(0);
            mb.appendLoadLocal(3);
            mb.appendPutField(srccol);
            mb.appendReturn();
            mb.codeComplete(false);
            mb.addMethod();
       
            // add methods for getting the source information
            mb = new ExceptionMethodBuilder(SOURCENAME_METHODNAME,
View Full Code Here

            // add methods for getting the source information
            mb = new ExceptionMethodBuilder(SOURCENAME_METHODNAME,
                Type.STRING, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
            mb.appendGetField(srcname);
            mb.appendReturn(Type.STRING);
            mb.codeComplete(false);
            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCELINE_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
View Full Code Here

            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCELINE_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
            mb.appendGetField(srcline);
            mb.appendReturn("int");
            mb.codeComplete(false);
            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCECOLUMN_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
View Full Code Here

            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCECOLUMN_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
            mb.appendGetField(srccol);
            mb.appendReturn("int");
            mb.codeComplete(false);
            mb.addMethod();
        }
    }
   
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.