List of usage examples for org.objectweb.asm Opcodes ASM5
int ASM5
To view the source code for org.objectweb.asm Opcodes ASM5.
Click Source Link
From source file:com.dragome.methodlogger.serverside.MethodLoggerAdapter.java
License:Apache License
public MethodReturnAdapter(int api, String owner, int access, String name, String desc, MethodVisitor mv) { super(Opcodes.ASM5, mv, access, name, desc); this.owner = owner; this.name = name; }
From source file:com.dragome.methodlogger.serverside.MethodLoggerAdapter.java
License:Apache License
public MethodReturnAdapter(MethodVisitor mv, int access, String name, String desc) { super(Opcodes.ASM5, mv, access, name, desc); this.name = name; }
From source file:com.dragome.methodlogger.serverside.MethodLoggerBytecodeTransformer.java
License:Apache License
public byte[] transform(String className, byte[] bytecode) { if (requiresTransformation(className)) { ClassNode classNode = new ClassNode(Opcodes.ASM5); MethodLoggerAdapter invokeDynamicConverter = new MethodLoggerAdapter(classNode); new ClassReader(bytecode).accept(invokeDynamicConverter, ClassReader.EXPAND_FRAMES); ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS); classNode.accept(cw);// w w w. j ava2 s .c o m return cw.toByteArray(); } else return bytecode; }
From source file:com.facebook.buck.android.dalvik.firstorder.FirstOrderAnnotationVisitor.java
License:Apache License
public FirstOrderAnnotationVisitor(FirstOrderVisitorContext context) { super(Opcodes.ASM5); mBuilder = context.builder; }
From source file:com.facebook.buck.android.dalvik.firstorder.FirstOrderClassVisitor.java
License:Apache License
FirstOrderClassVisitor(FirstOrderVisitorContext context) {
super(Opcodes.ASM5);
mContext = context;
mBuilder = mContext.builder;
}
From source file:com.facebook.buck.android.dalvik.firstorder.FirstOrderFieldVisitor.java
License:Apache License
public FirstOrderFieldVisitor(FirstOrderVisitorContext context) { super(Opcodes.ASM5); mContext = context; // Unused by dexopt: mBuilder = context.builder; }
From source file:com.facebook.buck.android.dalvik.firstorder.FirstOrderMethodVisitor.java
License:Apache License
public FirstOrderMethodVisitor(FirstOrderVisitorContext context) { super(Opcodes.ASM5); mContext = context; mBuilder = context.builder; }
From source file:com.facebook.buck.java.abi.AnnotationMirror.java
License:Apache License
public AnnotationMirror(String desc, boolean visible) { super(Opcodes.ASM5); this.desc = desc; this.visible = visible; this.values = Maps.newTreeMap(); }
From source file:com.facebook.buck.java.abi.AnnotationValueMirror.java
License:Apache License
private AnnotationValueMirror(Object primitiveValue) { super(Opcodes.ASM5); this.primitiveValue = primitiveValue; this.enumValue = null; this.annotationValue = null; this.arrayValue = null; }
From source file:com.facebook.buck.java.abi.AnnotationValueMirror.java
License:Apache License
private AnnotationValueMirror(EnumMirror enumValue) { super(Opcodes.ASM5); this.primitiveValue = null; this.enumValue = enumValue; this.annotationValue = null; this.arrayValue = null; }