Java Code Examples for org.objectweb.asm.ClassReader#SKIP_CODE
The following examples show how to use
org.objectweb.asm.ClassReader#SKIP_CODE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClassEntry.java From javaide with GNU General Public License v3.0 | 6 votes |
/** Adds in all the super classes found for the given class entries into the given map */ private static void addSuperClasses( @NonNull LintClient client, @NonNull SuperclassVisitor visitor, @NonNull List<ClassEntry> entries) { for (ClassEntry entry : entries) { try { ClassReader reader = new ClassReader(entry.bytes); int flags = ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES; reader.accept(visitor, flags); } catch (Throwable t) { client.log(null, "Error processing %1$s: broken class file?", entry.path()); } } }
Example 2
Source File: DirectoryReader.java From buck with Apache License 2.0 | 6 votes |
@Override public void visitClass(Path relativePath, ClassVisitor cv, boolean skipCode) throws IOException { if (!isClass(relativePath)) { throw new IllegalArgumentException(); } int parsingOptions = ClassReader.SKIP_FRAMES; if (skipCode) { parsingOptions |= ClassReader.SKIP_DEBUG | ClassReader.SKIP_CODE; } try (InputStream inputStream = openInputStream(relativePath)) { ClassReader reader = new ClassReader(inputStream); reader.accept(cv, parsingOptions); } }
Example 3
Source File: ASMClassNodeAdapter.java From pinpoint with Apache License 2.0 | 5 votes |
private static int getParsingOption(boolean skipCode) { if (skipCode) { return ClassReader.SKIP_CODE; } else { return 0; } }
Example 4
Source File: GroovySunClassLoader.java From groovy with Apache License 2.0 | 4 votes |
protected GroovySunClassLoader() throws Throwable { this(ClassReader.SKIP_CODE); }