Example usage for org.objectweb.asm Opcodes ASM4

List of usage examples for org.objectweb.asm Opcodes ASM4

Introduction

In this page you can find the example usage for org.objectweb.asm Opcodes ASM4.

Prototype

int ASM4

To view the source code for org.objectweb.asm Opcodes ASM4.

Click Source Link

Usage

From source file:com.alibaba.hotswap.processor.jdk.classloader.modifier.FindClassMethodModifier.java

License:Open Source License

public FindClassMethodModifier(MethodVisitor mv) {
    super(Opcodes.ASM4, mv);
}

From source file:com.android.tools.layoutlib.create.AbstractClassAdapter.java

License:Apache License

public AbstractClassAdapter(ClassVisitor cv) {
    super(Opcodes.ASM4, cv);
}

From source file:com.android.tools.layoutlib.create.DelegateClassAdapter.java

License:Apache License

/**
 * Creates a new {@link DelegateClassAdapter} that can transform some methods
 * from a class into delegates that defer the call to an associated delegate class.
 * <p/>//  w  w  w  . j  av a2s . c  om
 * This is used to override specific methods and or all native methods in classes.
 *
 * @param log The logger object. Must not be null.
 * @param cv the class visitor to which this adapter must delegate calls.
 * @param className The internal class name of the class to visit,
 *          e.g. <code>com/android/SomeClass$InnerClass</code>.
 * @param delegateMethods The set of method names to modify and/or the
 *          special constant {@link #ALL_NATIVES} to convert all native methods.
 */
public DelegateClassAdapter(Log log, ClassVisitor cv, String className, Set<String> delegateMethods) {
    super(Opcodes.ASM4, cv);
    mLog = log;
    mClassName = className;
    mDelegateMethods = delegateMethods;
}

From source file:com.android.tools.layoutlib.create.DelegateMethodAdapter2.java

License:Apache License

/**
 * Creates a new {@link DelegateMethodAdapter2} that will transform this method
 * into a delegate call.//from   w w  w.j a  va 2 s.c  om
 * <p/>
 * See {@link DelegateMethodAdapter2} for more details.
 *
 * @param log The logger object. Must not be null.
 * @param mvOriginal The parent method writer to copy of the original method.
 *          Must be {@code null} when dealing with a native original method.
 * @param mvDelegate The parent method writer to generate the delegating method.
 *          Must never be null.
 * @param className The internal class name of the class to visit,
 *          e.g. <code>com/android/SomeClass$InnerClass</code>.
 * @param methodName The simple name of the method.
 * @param desc A method descriptor (c.f. {@link Type#getReturnType(String)} +
 *          {@link Type#getArgumentTypes(String)})
 * @param isStatic True if the method is declared static.
 */
public DelegateMethodAdapter2(Log log, MethodVisitor mvOriginal, MethodVisitor mvDelegate, String className,
        String methodName, String desc, boolean isStatic) {
    super(Opcodes.ASM4);
    mLog = log;
    mOrgWriter = mvOriginal;
    mDelWriter = mvDelegate;
    mClassName = className;
    mMethodName = methodName;
    mDesc = desc;
    mIsStatic = isStatic;
}

From source file:com.android.tools.layoutlib.create.FieldInjectorAdapter.java

License:Apache License

public FieldInjectorAdapter(ClassVisitor cv) {
    super(Opcodes.ASM4, cv);
}

From source file:com.collir24.policyextractor.ExtractorClassVisitor.java

License:Apache License

public ExtractorClassVisitor(String className, ModulePermissions modPermissions) {
    super(Opcodes.ASM4);
    this.className = className;
    this.modulePermissions = modPermissions;
}

From source file:com.collir24.policyextractor.ExtractorVisitor.java

License:Apache License

protected ExtractorVisitor(final ModulePermissions modulePermissions, final String className) {
    super(Opcodes.ASM4);
    this.modulePermissions = modulePermissions;
    this.className = className;
}

From source file:com.devexperts.aprof.transformer.AbstractMethodVisitor.java

License:Open Source License

public AbstractMethodVisitor(GeneratorAdapter mv, Context context) {
    super(Opcodes.ASM4, mv);
    this.mv = mv;
    this.context = context;
}

From source file:com.devexperts.usages.ClassUsagesAnalyzer.java

License:Open Source License

public ClassUsagesAnalyzer(Usages usages, String className) {
    super(Opcodes.ASM4);
    this.cache = usages.getCache();
    this.usages = usages;
    this.className = className;
}

From source file:com.devexperts.usages.PublicApiAnalyzer.java

License:Open Source License

public PublicApiAnalyzer(PublicApi api, String className) {
    super(Opcodes.ASM4);
    this.api = api;
    this.className = className;
}