@Test public void testHasNoNative() throws IOException { MockClassHasNativeVisitor cv = new MockClassHasNativeVisitor(); String className = this.getClass().getCanonicalName() + "$" + ClassWithoutNative.class.getSimpleName(); ClassReader cr = new ClassReader(className); cr.accept(cv, 0 ); assertArrayEquals(new String[0], cv.getMethodsFound()); assertFalse(cv.hasNativeMethods()); }
public boolean hasNativeMethods() { return mHasNativeMethods; }
ClassHasNativeVisitor extends ClassVisitor { public boolean hasNativeMethods() { return mHasNativeMethods; } }
ClassHasNativeVisitor extends ClassVisitor { public boolean hasNativeMethods() { return mHasNativeMethods; } ClassHasNativeVisitor(); }
ClassHasNativeVisitor extends ClassVisitor { public boolean hasNativeMethods() { return mHasNativeMethods; } ClassHasNativeVisitor(); boolean hasNativeMethods(); @Override void visit(int version, int access, String name, String signature,
            String superName, String[] interfaces); @Override AnnotationVisitor visitAnnotation(String desc, boolean visible); @Override void visitAttribute(Attribute attr); @Override void visitEnd(); @Override FieldVisitor visitField(int access, String name, String desc,
            String signature, Object value); @Override void visitInnerClass(String name, String outerName,
            String innerName, int access); @Override MethodVisitor visitMethod(int access, String name, String desc,
            String signature, String[] exceptions); @Override void visitOuterClass(String owner, String name, String desc); @Override void visitSource(String source, String debug); }
ClassHasNativeVisitor extends ClassVisitor { public boolean hasNativeMethods() { return mHasNativeMethods; } ClassHasNativeVisitor(); boolean hasNativeMethods(); @Override void visit(int version, int access, String name, String signature,
            String superName, String[] interfaces); @Override AnnotationVisitor visitAnnotation(String desc, boolean visible); @Override void visitAttribute(Attribute attr); @Override void visitEnd(); @Override FieldVisitor visitField(int access, String name, String desc,
            String signature, Object value); @Override void visitInnerClass(String name, String outerName,
            String innerName, int access); @Override MethodVisitor visitMethod(int access, String name, String desc,
            String signature, String[] exceptions); @Override void visitOuterClass(String owner, String name, String desc); @Override void visitSource(String source, String debug);  }