Examples of MClass


Examples of org.codehaus.jam.mutable.MClass

    addSourcePosition(dest,src);
    // add any inner classes
    ClassDoc[] inners = src.innerClasses();
    if (inners != null) {
      for(int i=0; i<inners.length; i++) {
        MClass inner = dest.addNewInnerClass(inners[i].typeName());
        inner.setArtifact(inners[i]);
        populate(inner);
      }
    }
  }
View Full Code Here

Examples of org.codehaus.jam.mutable.MClass

    String pkgName = "";
    if (dot != -1) {
      pkgName = clazzName.substring(0,dot);
      clazzName = clazzName.substring(dot+1);
    }
    MClass clazz = mCache.createClassToBuild(pkgName,clazzName,null);
    //
    clazz.setIsInterface(assertCurrentBoolean(ISINTERFACE));
    clazz.setModifiers(assertCurrentInt(MODIFIERS));
    String supername = checkCurrentString(SUPERCLASS);
    if (supername != null) clazz.setSuperclass(supername);
    while((supername = checkCurrentString(INTERFACE)) != null) {
      clazz.addInterface(supername);
    }
    while(FIELD.equals(getElementName())) readField(clazz);
    while(CONSTRUCTOR.equals(getElementName())) readConstructor(clazz);
    while(METHOD.equals(getElementName())) readMethod(clazz);
    readAnnotatedElement(clazz);
View Full Code Here

Examples of org.codehaus.jam.mutable.MClass

      rclass = mLoader.loadClass(loadme);
    } catch(ClassNotFoundException cnfe) {
      getLogger().verbose(cnfe,this);
      return null;
    }
    MClass out = createClassToBuild(packageName, className, null, this);
    out.setArtifact(rclass);
    return out;
  }
View Full Code Here

Examples of org.codehaus.jam.mutable.MClass

          char first = simpleName.charAt(0);
          if ( ('0' <= first) && (first <= '9')) {
            continue;
          }
        }
        MClass inner = dest.addNewInnerClass(simpleName);
        inner.setArtifact(inners[i]);
        populate(inner);
      }
    }
  }
View Full Code Here

Examples of org.xooof.xmldispatcher.classinfo.MClass

    }

    synchronized public MClass getMClass(String className)
      throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        MClass classinfo = null;
        if (!ClassInfoCache.cache.containsKey(className)) {
            classinfo = (MClass) this.xd.dispatchClassMethod(className, "getClassInfo", null);
            ClassInfoCache.cache.put(className, classinfo);
        } else {
            classinfo = (MClass) ClassInfoCache.cache.get(className);
View Full Code Here

Examples of org.xooof.xmldispatcher.classinfo.MClass

     */
    synchronized public short getVerb(String className, String methodName)
      throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        short result = -1;
        MClass classinfo = getMClass(className);
       
        MClassMethod[] classmethods = classinfo.getClassmethods();
        for (int i=0; i<classmethods.length && result==-1; i++) {
            MClassMethod method = classmethods[i];
            if(method.getName().equalsIgnoreCase(methodName)) {
                result = EnvelopeConstants.verbDispatchClassMethodXML;
            }
        }
        if (methodName.equalsIgnoreCase(XOOOF_CLASS_METHOD_GETCLASSINFO)) {
            result = EnvelopeConstants.verbDispatchClassMethodXML;
        }
       
        MInstanceMethod[] instancemethods = classinfo.getInstancemethods();
        for (int i=0; i<instancemethods.length && result==-1; i++) {
            MInstanceMethod method = instancemethods[i];
            if(method.getName().equalsIgnoreCase(methodName)) {
                if (method.getSpecial() != null && method.getSpecial().equalsIgnoreCase("constructor")) {
                    result = EnvelopeConstants.verbDispatchNewInstanceMethodXML;
View Full Code Here

Examples of org.xooof.xmldispatcher.classinfo.MClass

  
    synchronized public String[] getAllowedMethodsForState(String className, String state)
    throws XMLDispatcherCommException, XMLDispatcherUserException, XMLDispatcherSystemException, XMLDispatcherAppException
    {
        String[] result = null;
        MClass classinfo = getMClass(className);
       
        MInstanceMethod[] methods = classinfo.getInstancemethods();
        for (int i=0; i<methods.length && result==null; i++) {
            MInstanceMethod method = methods[i];
            if (method.getName().equalsIgnoreCase(state)) {
                 result = method.getStates();
            }
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.