Package com.strobel.assembler.metadata

Examples of com.strobel.assembler.metadata.ITypeLoader


    public static void decompile(final String internalName, final ITextOutput output, final DecompilerSettings settings) {
        VerifyArgument.notNull(internalName, "internalName");
        VerifyArgument.notNull(settings, "settings");

        final ITypeLoader typeLoader = settings.getTypeLoader() != null ? settings.getTypeLoader() : new ClasspathTypeLoader();
        final MetadataSystem metadataSystem = new MetadataSystem(typeLoader);

        final TypeReference type;

        if (internalName.length() == 1) {
View Full Code Here


        path = path + name;

        if (file.getName().endsWith(".jar") || file.getName().endsWith(".zip")) {
          if (state == null) {
            JarFile jfile = new JarFile(file);
            ITypeLoader jarLoader = new JarTypeLoader(jfile);

            typeLoader.getTypeLoaders().add(jarLoader);
            state = new State(file.getCanonicalPath(), file, jfile, jarLoader);
          }
View Full Code Here

              mass = jarEntryFilter.getAllEntriesFromJar();
            }
            buildTreeFromMass(mass);

            if (state == null) {
              ITypeLoader jarLoader = new JarTypeLoader(jfile);
              typeLoader.getTypeLoaders().add(jarLoader);
              state = new State(file.getCanonicalPath(), file, jfile, jarLoader);
            }
            open = true;
            label.setText("Complete");
View Full Code Here

      bar.setMaximum(jfile.size());
      byte data[] = new byte[1024];
      DecompilerSettings settings = cloneSettings();
      LuytenTypeLoader typeLoader = new LuytenTypeLoader();
      MetadataSystem metadataSystem = new MetadataSystem(typeLoader);
      ITypeLoader jarLoader = new JarTypeLoader(jfile);
      typeLoader.getTypeLoaders().add(jarLoader);

      DecompilationOptions decompilationOptions = new DecompilationOptions();
      decompilationOptions.setSettings(settings);
      decompilationOptions.setFullDecompilation(true);
View Full Code Here

TOP

Related Classes of com.strobel.assembler.metadata.ITypeLoader

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.