FileDocCategorySizeDatePackage
ClassHasNativeVisitor.javaAPI DocAndroid 5.1 API2817Thu Mar 12 22:22:44 GMT 2015com.android.tools.layoutlib.create

ClassHasNativeVisitor

public class ClassHasNativeVisitor extends org.objectweb.asm.ClassVisitor
Indicates if a class contains any native methods.

Fields Summary
private boolean
mHasNativeMethods
Constructors Summary
public ClassHasNativeVisitor()

        super(Opcodes.ASM4);
    
Methods Summary
public booleanhasNativeMethods()


       
        return mHasNativeMethods;
    
protected voidsetHasNativeMethods(boolean hasNativeMethods, java.lang.String methodName)

        mHasNativeMethods = hasNativeMethods;
    
public voidvisit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)

        // pass
    
public org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String desc, boolean visible)

        // pass
        return null;
    
public voidvisitAttribute(org.objectweb.asm.Attribute attr)

        // pass
    
public voidvisitEnd()

        // pass
    
public org.objectweb.asm.FieldVisitorvisitField(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.Object value)

        // pass
        return null;
    
public voidvisitInnerClass(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)

        // pass
    
public org.objectweb.asm.MethodVisitorvisitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)

        if ((access & Opcodes.ACC_NATIVE) != 0) {
            setHasNativeMethods(true, name);
        }
        return null;
    
public voidvisitOuterClass(java.lang.String owner, java.lang.String name, java.lang.String desc)

        // pass
    
public voidvisitSource(java.lang.String source, java.lang.String debug)

        // pass