Examples of methods()


Examples of com.sun.codemodel.JDefinedClass.methods()

       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.unbounded.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("java.util.List<java.lang.String>", jm.type().fullName());
    }
   
    public void testEchoUnboundedWithKeyword() throws Exception
    {
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.keyword.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("java.util.List<java.lang.String>", jm.type().fullName());
    }
   
    public void testWrappedMTOMEcho() throws Exception
    {
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

       
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("echo.wrapped.mtom.EchoPortType");
        assertNotNull(echo);
       
        JMethod jm = echo.methods().iterator().next();
        assertEquals("javax.activation.DataHandler", jm.type().fullName());
    }
}
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

        final JClass newCollectionClass = candidateClass.owner().ref(collectionClass).narrow(pool.getClassCoordinate());

        jFieldVar.type(newInterfaceClass);
        // Find original getter and setter methods to remove.
        final ArrayList<JMethod> methodsToRemove = new ArrayList<JMethod>();
        for (final JMethod m : candidateClass.methods()) {
          if (m.name().equals("set" + Util.upperFirst(jFieldVar.name())) || m.name().equals("get" + Util.upperFirst(jFieldVar.name()))) {
            methodsToRemove.add(m);
          }
        }
        // Remove original getter and setter methods.
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

            methodsToRemove.add(m);
          }
        }
        // Remove original getter and setter methods.
        for (final JMethod m : methodsToRemove) {
          candidateClass.methods().remove(m);
        }
        // Add a new getter method returning the (wrapped) field added.
        // CODE: public I<T> getFieldname() { ... };
        final JMethod method = candidateClass.method(JMod.PUBLIC, newInterfaceClass, "get" + Util.upperFirst(jFieldVar.name()));
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

      final JDefinedClass factoryClass = packageoutline.objectFactory();
      if (factoryClass != null) {
        // LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME+" pkg:          " + pkg.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.fullName());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
        factoryClass.methods().clear();
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
//        factoryClass.fields().clear();
        final JPackage parent = (JPackage)factoryClass.parentContainer();
        parent.remove(factoryClass);
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

      if (factoryClass != null) {
        // LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME+" pkg:          " + pkg.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.fullName());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
        factoryClass.methods().clear();
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
//        factoryClass.fields().clear();
        final JPackage parent = (JPackage)factoryClass.parentContainer();
        parent.remove(factoryClass);
      }
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.methods()

        // LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME+" pkg:          " + pkg.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.name());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.fullName());
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
        factoryClass.methods().clear();
        LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " factoryClass: " + factoryClass.methods().size());
//        factoryClass.fields().clear();
        final JPackage parent = (JPackage)factoryClass.parentContainer();
        parent.remove(factoryClass);
      }
    }
View Full Code Here

Examples of com.sun.javadoc.AnnotationTypeDoc.methods()

     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
View Full Code Here

Examples of com.sun.javadoc.AnnotationTypeElementDoc.methods()

     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
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.