Java Code Examples for org.objectweb.asm.Opcodes#ASM7
The following examples show how to use
org.objectweb.asm.Opcodes#ASM7 .
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: EntityScanner.java From kyoko with MIT License | 5 votes |
@Inject public EntityScanner(EbeanClassRegistry registry, ModuleManager moduleManager) { super(Opcodes.ASM7); this.registry = registry; this.moduleManager = moduleManager; }
Example 2
Source File: ASMifier.java From JReFrameworker with MIT License | 5 votes |
/** * Constructs a new {@link ASMifier}. <i>Subclasses must not use this constructor</i>. Instead, * they must use the {@link #ASMifier(int, String, int)} version. * * @throws IllegalStateException If a subclass calls this constructor. */ public ASMifier() { this(Opcodes.ASM7, "classWriter", 0); if (getClass() != ASMifier.class) { throw new IllegalStateException(); } }
Example 3
Source File: MethodNode.java From JReFrameworker with MIT License | 5 votes |
/** * Constructs an uninitialized {@link MethodNode}. <i>Subclasses must not use this * constructor</i>. Instead, they must use the {@link #MethodNode(int)} version. * * @throws IllegalStateException If a subclass calls this constructor. */ public MethodNode() { this(Opcodes.ASM7); if (getClass() != MethodNode.class) { throw new IllegalStateException(); } }
Example 4
Source File: SignatureVisitor.java From JReFrameworker with MIT License | 5 votes |
/** * Constructs a new {@link SignatureVisitor}. * * @param api the ASM API version implemented by this visitor. Must be one of {@link * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}. */ public SignatureVisitor(final int api) { if (api != Opcodes.ASM6 && api != Opcodes.ASM5 && api != Opcodes.ASM4 && api != Opcodes.ASM7) { throw new IllegalArgumentException(); } this.api = api; }
Example 5
Source File: MethodSignatureVisitor.java From meghanada-server with GNU General Public License v3.0 | 5 votes |
private MethodSignatureVisitor(String name, MethodSignatureVisitor parent) { super(Opcodes.ASM7); final EntryMessage message = log.traceEntry("name={}", name); this.name = name; this.parent = parent; this.classTypeParameters = parent.classTypeParameters; this.typeMap = parent.typeMap; log.traceExit(message); }
Example 6
Source File: VerifyingClassAdapter.java From allocation-instrumenter with Apache License 2.0 | 5 votes |
/** * @param cw A class writer that is wrapped by this class adapter * @param original the original bytecode * @param className the name of the class being examined. */ public VerifyingClassAdapter(ClassWriter cw, byte[] original, String className) { super(Opcodes.ASM7, cw); state = State.UNKNOWN; message = "The class has not finished being examined"; this.cw = cw; this.original = original; this.className = className.replace('/', '.'); }
Example 7
Source File: CachedClassMirrors.java From Concurnas with MIT License | 4 votes |
public CCMFieldVisitor(final FieldVisitor fv, String name, String desc) { super(Opcodes.ASM7,fv); this.name = name; this.desc = desc; }
Example 8
Source File: StripVerifyingVisitor.java From bazel with Apache License 2.0 | 4 votes |
public StripVerifyingVisitor() { super(Opcodes.ASM7); }
Example 9
Source File: ClassSignatureVisitorTest.java From meghanada-server with GNU General Public License v3.0 | 4 votes |
TestVisitor(String name) { super(Opcodes.ASM7); this.name = name; }
Example 10
Source File: Dependencies.java From twill with Apache License 2.0 | 4 votes |
public DependencyClassVisitor(DependencyAcceptor acceptor) { super(Opcodes.ASM7); this.acceptor = acceptor; this.signatureVisitor = createSignatureVisitor(); this.annotationVisitor = createAnnotationVisitor(); }
Example 11
Source File: ArquillianClientAnnotationSeekingClassVisitor.java From thorntail with Apache License 2.0 | 4 votes |
public ArquillianClientAnnotationSeekingClassVisitor() { super(Opcodes.ASM7); }
Example 12
Source File: OffHeapAugmentor.java From Concurnas with MIT License | 4 votes |
private OffHeapAugmentor( ClassWriter cv) { super(Opcodes.ASM7, cv); }
Example 13
Source File: FirstOrderFieldVisitor.java From buck with Apache License 2.0 | 4 votes |
public FirstOrderFieldVisitor(FirstOrderVisitorContext context) { super(Opcodes.ASM7); mContext = context; // Unused by dexopt: mBuilder = context.builder; }
Example 14
Source File: RefFieldMapper.java From Concurnas with MIT License | 4 votes |
private RefClassFieldMapper( ClassWriter cv, String className, HashMap<String, FieldMirror> fields) { super(Opcodes.ASM7, cv); this.className=className; this.fields=fields; }
Example 15
Source File: AsmApi.java From cglib with Apache License 2.0 | 4 votes |
/** * Returns the latest stable ASM API value in {@link Opcodes}. */ static int value() { return Opcodes.ASM7; }
Example 16
Source File: InstructionAdapter.java From Concurnas with MIT License | 3 votes |
/** * Constructs a new {@link InstructionAdapter}. <i>Subclasses must not use this constructor</i>. * Instead, they must use the {@link #InstructionAdapter(int, MethodVisitor)} version. * * @param methodVisitor the method visitor to which this adapter delegates calls. * @throws IllegalStateException If a subclass calls this constructor. */ public InstructionAdapter(final MethodVisitor methodVisitor) { this(Opcodes.ASM7, methodVisitor); if (getClass() != InstructionAdapter.class) { throw new IllegalStateException(); } }
Example 17
Source File: GeneratorAdapter.java From JReFrameworker with MIT License | 3 votes |
/** * Constructs a new {@link GeneratorAdapter}. <i>Subclasses must not use this constructor</i>. * Instead, they must use the {@link #GeneratorAdapter(int, MethodVisitor, int, String, String)} * version. * * @param methodVisitor the method visitor to which this adapter delegates calls. * @param access the method's access flags (see {@link Opcodes}). * @param name the method's name. * @param descriptor the method's descriptor (see {@link Type}). * @throws IllegalStateException if a subclass calls this constructor. */ public GeneratorAdapter( final MethodVisitor methodVisitor, final int access, final String name, final String descriptor) { this(Opcodes.ASM7, methodVisitor, access, name, descriptor); if (getClass() != GeneratorAdapter.class) { throw new IllegalStateException(); } }
Example 18
Source File: AnalyzerAdapter.java From Concurnas with MIT License | 3 votes |
/** * Constructs a new {@link AnalyzerAdapter}. <i>Subclasses must not use this constructor</i>. * Instead, they must use the {@link #AnalyzerAdapter(int, String, int, String, String, * MethodVisitor)} version. * * @param owner the owner's class name. * @param access the method's access flags (see {@link Opcodes}). * @param name the method's name. * @param descriptor the method's descriptor (see {@link Type}). * @param methodVisitor the method visitor to which this adapter delegates calls. May be {@literal * null}. * @throws IllegalStateException If a subclass calls this constructor. */ public AnalyzerAdapter( final String owner, final int access, final String name, final String descriptor, final MethodVisitor methodVisitor) { this(Opcodes.ASM7, owner, access, name, descriptor, methodVisitor); if (getClass() != AnalyzerAdapter.class) { throw new IllegalStateException(); } }
Example 19
Source File: TraceFieldVisitor.java From JReFrameworker with MIT License | 2 votes |
/** * Constructs a new {@link TraceFieldVisitor}. * * @param fieldVisitor the field visitor to which to delegate calls. May be {@literal null}. * @param printer the printer to convert the visited field into text. */ public TraceFieldVisitor(final FieldVisitor fieldVisitor, final Printer printer) { super(Opcodes.ASM7, fieldVisitor); this.p = printer; }
Example 20
Source File: ASMifier.java From JReFrameworker with MIT License | 2 votes |
/** * Constructs a new {@link ASMifier}. * * @param visitorVariableName the name of the visitor variable in the produced code. * @param annotationVisitorId identifier of the annotation visitor variable in the produced code. * @return a new {@link ASMifier}. */ // DontCheck(AbbreviationAsWordInName): can't be renamed (for backward binary compatibility). protected ASMifier createASMifier( final String visitorVariableName, final int annotationVisitorId) { return new ASMifier(Opcodes.ASM7, visitorVariableName, annotationVisitorId); }