use of net.glowstone.linkstone.runtime.collect.AnnotatedFieldCollectVisitor in project Glowstone by GlowstoneMC.
the class LinkstonePluginScanner method scanPlugin.
private void scanPlugin(File pluginJar) throws IOException {
ZipInputStream zin = new ZipInputStream(new FileInputStream(pluginJar));
ZipEntry entry;
while ((entry = zin.getNextEntry()) != null) {
if (entry.isDirectory() || !entry.getName().endsWith(".class")) {
continue;
}
ClassVisitor cv = new AnnotatedFieldCollectVisitor(this.fields);
cv = new BoxCollectVisitor(this.boxes, cv);
new ClassReader(zin).accept(cv, ClassReader.SKIP_CODE);
zin.closeEntry();
}
zin.close();
}
Aggregations