Package org.apache.ws.jaxme.js

Examples of org.apache.ws.jaxme.js.JavaSource


       return jm;
     }
     public JavaSource generate(JavaSourceFactory pInterfaceFactory,
                 JavaQName pTargetClass,
                 InterfaceDescription[] pDescription) throws Exception {
       JavaSource result = super.generate(pInterfaceFactory, pTargetClass,
           pDescription);
       result.clearImplements();
       return result;
     }
View Full Code Here


       return jm;
     }
     public JavaSource generate(JavaSourceFactory pImplementationFactory,
                 JavaQName pTargetClass,
                 InterfaceDescription[] pDescription) throws Exception {
       JavaSource result = super.generate(pImplementationFactory, pTargetClass, pDescription);
       result.clearImplements();
       result.addImplements(getChainInterface());
       return result;
     }
View Full Code Here

       return jm;
     }
     public JavaSource generate(JavaSourceFactory pImplementationFactory,
                 JavaQName pTargetClass,
                 InterfaceDescription[] pDescription) throws Exception {
       JavaSource result = super.generate(pImplementationFactory, pTargetClass, pDescription);
       getGetHeadOfChainMethod(result);
       return result;
     }
View Full Code Here

            if (packageName == null) {
                qName = JavaQNameImpl.getInstance(className);
            } else {
                qName = JavaQNameImpl.getInstance(packageName, className);
            }
            JavaSource js = factory.newJavaSource(qName, JavaSource.DEFAULT_PROTECTION);
            generatedClasses.add(js);
            return js;
        } else {
            return pOuterClass.newJavaInnerClass(className, JavaSource.DEFAULT_PROTECTION);
        }
View Full Code Here

        }
    }

    private void parseClassDefinition(JavaSource pOuterClass,
                                      JavaSource.Type pType, AST pAST) {
      JavaSource currentClass = getJavaSource(pOuterClass, pAST);
        currentClass.setType(pType);
        parseModifiers(currentClass, pAST);
        parseImplementsOrExtends(currentClass, pAST, JavaRecognizer.EXTENDS_CLAUSE);
        if (!JavaSource.INTERFACE.equals(pType)) {
          parseImplementsOrExtends(currentClass, pAST, JavaRecognizer.IMPLEMENTS_CLAUSE);
        }
View Full Code Here

          columnUpdater = new IdIncrementer(pkColumns);
        }
        versionGenerator.addTable(table, columnUpdater);
      }

      JavaSource js = pFactory.newJavaSource(pTargetClass);
      versionGenerator.getCloneMethod(js);
    }
View Full Code Here

                    } else {
                      throw new BuildException("Unknown extension in file name: " + s
                                                 + ", expected .class or .java",
                                                 getLocation());
                    }
                    JavaSource js = r.getJavaSource(inputs);
                    sources.add(js);
                }
            }
            for (int i = 0;  i < sources.size();  i++) {
                JavaSource js = (JavaSource) sources.get(i);
                if (js.isAbstract()) {
                  getProject().log("Ignoring abstract class " + js.getQName(), Project.MSG_VERBOSE);
                } else {
                  getProject().log("Generating XML-RPC client for " + js.getQName(), Project.MSG_DEBUG);
                  gen.addClass(js, inputs);
                }
            }

            Dispatcher disp = getDispatcher();
View Full Code Here

  /** Reads the interface methods and converts them
   * into an instance of {@link JavaSource}.
   */
  public JavaSource getJavaSource(JavaSourceFactory pFactory) {
        Class c = getCompiledClass();
    JavaSource js = new JavaSourceFactory().newJavaSource(JavaQNameImpl.getInstance(c.getName(), true));
    Method[] methods = c.getMethods();
    for (int i = 0;  i < methods.length;  i++) {
      Method m = methods[i];
      getMethod(js, m);
    }
View Full Code Here

    /** Creates a new client class, which is invoking the given
     * server side class <code>pSource</code>.
     */
    public JavaSource addClass(JavaSource pSource, JavaSourceResolver pResolver)
            throws SecurityException, NoSuchMethodException {
        JavaSource js = getFactory().newJavaSource(JavaQNameImpl.getInstance(getTargetPackage(), pSource.getQName().getClassName()), JavaSource.PUBLIC);
        JavaField jf = getXmlRpcCaller(js);
        getConstructor(js, jf);
        Map keys = new HashMap();
        addMethods(js, pSource, keys, jf, pResolver);
        return js;
View Full Code Here

            }
        }
        if (pResolver != null) {
            JavaQName[] qNames = pSource.getExtends();
            for (int i = 0;  i < qNames.length;  i++) {
              JavaSource js = pResolver.getJavaSource(qNames[i]);
                if (js != null) {
                  addMethods(pResult, js, pKeys, pField, pResolver);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.js.JavaSource

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.