test_class.declarator: countCallbacks = 0
test_class.modifier: private
test_class.original_string: private int countCallbacks = 0;
test_class.type: int
test_class.var_name: countCallbacks
test_class.file: lang-java/src/test/java/org/eclipse/steady/java/JarWriterTest.java
test_class.identifier: JarWriterTest
test_class.interfaces: implements JarEntryWriter
test_case.body: @Test
    public void testAppendToClasspath() {
      try {
        final Set<Path> cp = new HashSet<Path>();
  
        // Needs rewriting
        final Path with_mf_entry =
            Paths.get("./src/test/resources/org.apache.servicemix.bundles.jaxb-xjc-2.2.4_1.jar");
        Path appended_path = JarWriter.appendToClasspath(cp, with_mf_entry, true);
        assertTrue(!cp.contains(with_mf_entry));
        assertTrue(!with_mf_entry.equals(appended_path));
  
        // Does not need rewriting
        final Path without_mf_entry = Paths.get("./src/test/resources/junit-4.12.jar");
        appended_path = JarWriter.appendToClasspath(cp, without_mf_entry, true);
        assertTrue(cp.contains(without_mf_entry));
        assertTrue(without_mf_entry.equals(appended_path));
      } catch (Exception e) {
        e.printStackTrace();
        assertTrue(false);
      }
    }
test_case.class_method_signature: JarWriterTest.testAppendToClasspath()
test_case.full_signature: @Test public void testAppendToClasspath()
test_case.identifier: testAppendToClasspath
test_case.invocations: get appendToClasspath assertTrue contains assertTrue equals get appendToClasspath assertTrue contains assertTrue equals printStackTrace assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAppendToClasspath()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: dateFormat = new SimpleDateFormat("d MMM yyyy HH:mm:ss")
focal_class.modifier: public final
focal_class.original_string: public final SimpleDateFormat dateFormat = new SimpleDateFormat("d MMM yyyy HH:mm:ss");
focal_class.type: SimpleDateFormat
focal_class.var_name: dateFormat
focal_class.declarator: MANIFEST_ENTRY_VULAS_MODIF = "VULAS-modifiedAt"
focal_class.modifier: public static final
focal_class.original_string: public static final String MANIFEST_ENTRY_VULAS_MODIF = "VULAS-modifiedAt";
focal_class.type: String
focal_class.var_name: MANIFEST_ENTRY_VULAS_MODIF
focal_class.declarator: MANIFEST_ENTRY_ORIG_SHA1 = "VULAS-originalSHA1"
focal_class.modifier: public static final
focal_class.original_string: public static final String MANIFEST_ENTRY_ORIG_SHA1 = "VULAS-originalSHA1";
focal_class.type: String
focal_class.var_name: MANIFEST_ENTRY_ORIG_SHA1
focal_class.declarator: hexArray = "0123456789ABCDEF".toCharArray()
focal_class.modifier: protected static final
focal_class.original_string: protected static final char[] hexArray = "0123456789ABCDEF".toCharArray();
focal_class.type: char[]
focal_class.var_name: hexArray
focal_class.declarator: originalJar = null
focal_class.modifier: private
focal_class.original_string: private JarFile originalJar = null;
focal_class.type: JarFile
focal_class.var_name: originalJar
focal_class.declarator: originalFileSize = 0
focal_class.modifier: private
focal_class.original_string: private long originalFileSize = 0;
focal_class.type: long
focal_class.var_name: originalFileSize
focal_class.declarator: originalManifest = null
focal_class.modifier: private
focal_class.original_string: private Manifest originalManifest = null;
focal_class.type: Manifest
focal_class.var_name: originalManifest
focal_class.declarator: sha1 = null
focal_class.modifier: private
focal_class.original_string: private String sha1 = null;
focal_class.type: String
focal_class.var_name: sha1
focal_class.declarator: mfEntriesToSkip = new HashSet<String>()
focal_class.modifier: private
focal_class.original_string: private Set<String> mfEntriesToSkip = new HashSet<String>();
focal_class.type: Set<String>
focal_class.var_name: mfEntriesToSkip
focal_class.declarator: mfEntriesToAdd = new HashMap<String, String>()
focal_class.modifier: private
focal_class.original_string: private Map<String, String> mfEntriesToAdd = new HashMap<String, String>();
focal_class.type: Map<String, String>
focal_class.var_name: mfEntriesToAdd
focal_class.declarator: classifier = null
focal_class.modifier: private
focal_class.original_string: private String classifier = null;
focal_class.type: String
focal_class.var_name: classifier
focal_class.declarator: callbacks = new HashMap<Pattern, JarEntryWriter>()
focal_class.modifier: private
focal_class.original_string: private Map<Pattern, JarEntryWriter> callbacks = new HashMap<Pattern, JarEntryWriter>();
focal_class.type: Map<Pattern, JarEntryWriter>
focal_class.var_name: callbacks
focal_class.declarator: rewrittenFile = null
focal_class.modifier: private
focal_class.original_string: private File rewrittenFile = null;
focal_class.type: File
focal_class.var_name: rewrittenFile
focal_class.declarator: additionalFiles = new HashMap<String, Path>()
focal_class.modifier: private
focal_class.original_string: private Map<String, Path> additionalFiles = new HashMap<String, Path>();
focal_class.type: Map<String, Path>
focal_class.var_name: additionalFiles
focal_class.file: lang-java/src/main/java/org/eclipse/steady/java/JarWriter.java
focal_class.identifier: JarWriter
focal_class.class_method_signature: JarWriter.JarWriter(Path _jar)
focal_class.full_signature: public  JarWriter(Path _jar)
focal_class.identifier: JarWriter
focal_class.modifiers: public
focal_class.parameters: (Path _jar)
focal_class.signature:  JarWriter(Path _jar)
focal_class.class_method_signature: JarWriter.getFileSize()
focal_class.full_signature: public long getFileSize()
focal_class.identifier: getFileSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getFileSize()
focal_class.class_method_signature: JarWriter.getInstrumentedFileSize()
focal_class.full_signature: public long getInstrumentedFileSize()
focal_class.identifier: getInstrumentedFileSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getInstrumentedFileSize()
focal_class.class_method_signature: JarWriter.getOriginalManifest()
focal_class.full_signature: public Manifest getOriginalManifest()
focal_class.identifier: getOriginalManifest
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Manifest
focal_class.signature: Manifest getOriginalManifest()
focal_class.class_method_signature: JarWriter.extract(Path _todir)
focal_class.full_signature: public Path extract(Path _todir)
focal_class.identifier: extract
focal_class.modifiers: public
focal_class.parameters: (Path _todir)
focal_class.return: Path
focal_class.signature: Path extract(Path _todir)
focal_class.class_method_signature: JarWriter.getSHA1()
focal_class.full_signature: public synchronized String getSHA1()
focal_class.identifier: getSHA1
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSHA1()
focal_class.class_method_signature: JarWriter.skipManifestEntry(String _entry)
focal_class.full_signature: public void skipManifestEntry(String _entry)
focal_class.identifier: skipManifestEntry
focal_class.modifiers: public
focal_class.parameters: (String _entry)
focal_class.return: void
focal_class.signature: void skipManifestEntry(String _entry)
focal_class.class_method_signature: JarWriter.addManifestEntry(String _key, String _val)
focal_class.full_signature: public void addManifestEntry(String _key, String _val)
focal_class.identifier: addManifestEntry
focal_class.modifiers: public
focal_class.parameters: (String _key, String _val)
focal_class.return: void
focal_class.signature: void addManifestEntry(String _key, String _val)
focal_class.class_method_signature: JarWriter.hasManifestEntry(String _key)
focal_class.full_signature: public boolean hasManifestEntry(String _key)
focal_class.identifier: hasManifestEntry
focal_class.modifiers: public
focal_class.parameters: (String _key)
focal_class.return: boolean
focal_class.signature: boolean hasManifestEntry(String _key)
focal_class.class_method_signature: JarWriter.isRewrittenByVulas()
focal_class.full_signature: public boolean isRewrittenByVulas()
focal_class.identifier: isRewrittenByVulas
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRewrittenByVulas()
focal_class.class_method_signature: JarWriter.setClassifier(String _string)
focal_class.full_signature: public void setClassifier(String _string)
focal_class.identifier: setClassifier
focal_class.modifiers: public
focal_class.parameters: (String _string)
focal_class.return: void
focal_class.signature: void setClassifier(String _string)
focal_class.class_method_signature: JarWriter.register(String _regex, JarEntryWriter _writer)
focal_class.full_signature: public void register(String _regex, JarEntryWriter _writer)
focal_class.identifier: register
focal_class.modifiers: public
focal_class.parameters: (String _regex, JarEntryWriter _writer)
focal_class.return: void
focal_class.signature: void register(String _regex, JarEntryWriter _writer)
focal_class.class_method_signature: JarWriter.createModifiedManifest()
focal_class.full_signature: private Manifest createModifiedManifest()
focal_class.identifier: createModifiedManifest
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Manifest
focal_class.signature: Manifest createModifiedManifest()
focal_class.class_method_signature: JarWriter.getOriginalJarFileName()
focal_class.full_signature: public Path getOriginalJarFileName()
focal_class.identifier: getOriginalJarFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getOriginalJarFileName()
focal_class.class_method_signature: JarWriter.getRewriteJarFileName()
focal_class.full_signature: public Path getRewriteJarFileName()
focal_class.identifier: getRewriteJarFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getRewriteJarFileName()
focal_class.class_method_signature: JarWriter.addFiles(String _target_dir, Set<Path> _paths, boolean _overwrite)
focal_class.full_signature: public void addFiles(String _target_dir, Set<Path> _paths, boolean _overwrite)
focal_class.identifier: addFiles
focal_class.modifiers: public
focal_class.parameters: (String _target_dir, Set<Path> _paths, boolean _overwrite)
focal_class.return: void
focal_class.signature: void addFiles(String _target_dir, Set<Path> _paths, boolean _overwrite)
focal_class.class_method_signature: JarWriter.addFile(String _target_dir, Path _path, boolean _overwrite)
focal_class.full_signature: public void addFile(String _target_dir, Path _path, boolean _overwrite)
focal_class.identifier: addFile
focal_class.modifiers: public
focal_class.parameters: (String _target_dir, Path _path, boolean _overwrite)
focal_class.return: void
focal_class.signature: void addFile(String _target_dir, Path _path, boolean _overwrite)
focal_class.class_method_signature: JarWriter.hasEntry(String _entry_name)
focal_class.full_signature: public boolean hasEntry(String _entry_name)
focal_class.identifier: hasEntry
focal_class.modifiers: public
focal_class.parameters: (String _entry_name)
focal_class.return: boolean
focal_class.signature: boolean hasEntry(String _entry_name)
focal_class.class_method_signature: JarWriter.getRewrittenJarFile()
focal_class.full_signature: public File getRewrittenJarFile()
focal_class.identifier: getRewrittenJarFile
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getRewrittenJarFile()
focal_class.class_method_signature: JarWriter.rewrite(Path _todir)
focal_class.full_signature: public Path rewrite(Path _todir)
focal_class.identifier: rewrite
focal_class.modifiers: public
focal_class.parameters: (Path _todir)
focal_class.return: Path
focal_class.signature: Path rewrite(Path _todir)
focal_class.class_method_signature: JarWriter.appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_class.full_signature: public static final void appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_class.identifier: appendToClasspath
focal_class.modifiers: public static final
focal_class.parameters: (
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_class.return: void
focal_class.signature: void appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_class.class_method_signature: JarWriter.appendToClasspath(
        Set<Path> _classpath, Path _to_append, boolean _preprocess)
focal_class.full_signature: public static final Path appendToClasspath(
        Set<Path> _classpath, Path _to_append, boolean _preprocess)
focal_class.identifier: appendToClasspath
focal_class.modifiers: public static final
focal_class.parameters: (
        Set<Path> _classpath, Path _to_append, boolean _preprocess)
focal_class.return: Path
focal_class.signature: Path appendToClasspath(
        Set<Path> _classpath, Path _to_append, boolean _preprocess)
focal_method.body: public static final void appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) {
      for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess);
    }
focal_method.class_method_signature: JarWriter.appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_method.full_signature: public static final void appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_method.identifier: appendToClasspath
focal_method.invocations: appendToClasspath
focal_method.modifiers: public static final
focal_method.parameters: (
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)
focal_method.return: void
focal_method.signature: void appendToClasspath(
        Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess)