Package org.xmlvm.proc

Examples of org.xmlvm.proc.XmlvmResource$XmlvmMethod


      catch (Exception e)
      {
        e.printStackTrace();
      }

      XmlvmResource resource= new XmlvmResource(org.xmlvm.proc.XmlvmResource.Type.DEX, doc);
      bundle.addResource(resource);
    }
    return false;
  }
View Full Code Here


      { // If any green list exists, force inclusion of its contents
        for (String className : classes)
        {
          if (!resources.containsKey(className))
          {
            XmlvmResource resource= libraryLoader.load(className);
            if (resource != null)
            {
              resources.put(resource.getFullName(), resource);
            }
          }
        }
      }
    }
View Full Code Here

    public void run()
    {
      for (int i= start; i <= end; ++i)
      {
        XmlvmResource resource= allResources[i];
        if (resource == null)
        {
          continue;
        }
        String resourceName= resource.getName();
        Log.debug("JavaOutputProcess: Processing " + resourceName);
        OutputFile file= generateJava(resource);
        file.setLocation(arguments.option_out());
        String packageName= resource.getPackageName().replace('.', '/');

        String fileName= resourceName + JAVA_EXTENSION;
        if (!packageName.isEmpty())
        {
          fileName= packageName + '/' + fileName;
View Full Code Here

      xmlEntry.setAttribute("escaped-constant", entry.escapedString);
      xmlEntry.setAttribute("encoded-constant", entry.encodedString);
      xmlRoot.addContent(xmlEntry);
    }

    XmlvmResource resource= new XmlvmResource(XmlvmResource.Type.CONST_POOL, new Document(xmlRoot));
    bundle.addAdditionalResource(resource);
  }
View Full Code Here

      libraries.addAll(libs.getLibraryFiles());
    }

    for (UniversalFile library : libraries)
    {
      XmlvmResource resource= load(typeName, library);
      if (resource != null)
      {
        return resource;
      }
    }
View Full Code Here

    if (bundle.getResources().size() != 1)
    {
      return null;
    }
    XmlvmResource resource= bundle.getResources().iterator().next();
    cache.put(file.getAbsolutePath(), resource);
    return resource;
  }
View Full Code Here

    List<XmlvmResource> result= new ArrayList<XmlvmResource>();
    for (UniversalFile library : libs.getMonolithicLibraryFiles())
    {
      for (UniversalFile file : library.listFilesRecursively(new FileSuffixFilter(".class")))
      {
        XmlvmResource resource= processClassFile(file, true);
        if (resource != null)
        {
          result.add(resource);
        }
      }
View Full Code Here

  {
    Set<String> toLoad= new HashSet<String>();

    for (String typeName : resources.keySet())
    {
      XmlvmResource resource= resources.get(typeName);
      if (resource == null)
      {
        continue;
      }
      Log.debug("***********************************");
      Log.debug("XMLVM Resource: " + resource.getFullName());
      Log.debug("Super-type    : " + resource.getSuperTypeName());
      Log.debug("Referenced types:");

      Set<String> referencedTypes= resource.getReferencedTypes();
      eliminateArrayTypes(referencedTypes);

      for (String referencedType : referencedTypes)
      {
        if (!isBasicType(referencedType))
View Full Code Here

    Set<GraphNode> toCheck= node.getParents();

    for (GraphNode current : toCheck)
    {
      // Check if method is overridden
      XmlvmResource childClass= current.getResource();
      if (!childClass.isInterface())
      {
        for (XmlvmMethod each : childClass.getMethods())
        {
          if (each.doesOverrideMethod(method))
          {
            return true;
          }
        }

        // Recursively call for all children
        if (isOverridding(childClass.getFullName(), method))
        {
          return true;
        }
      }
    }
View Full Code Here

    }

    for (GraphNode current : toCheck)
    {
      // Check if method is overridden
      XmlvmResource childClass= current.getResource();
      for (XmlvmMethod each : childClass.getMethods())
      {
        if (each.doesOverrideMethod(method))
        {
          return true;
        }
View Full Code Here

TOP

Related Classes of org.xmlvm.proc.XmlvmResource$XmlvmMethod

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.