org.objectweb.asm.Opcodes# ASM8 ( ) 源码实例Demo

下面列出了org.objectweb.asm.Opcodes# ASM8 ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: bazel   文件: RuntimeEntityResolver.java

private static ClassNode findClassNode(String jarEntryPathName, ImmutableList<Path> jars)
    throws IOException, ClassNotFoundException {
  for (Path jar : jars) {
    JarFile jarFile = new JarFile(jar.toFile());
    JarEntry jarEntry = jarFile.getJarEntry(jarEntryPathName);
    if (jarEntry != null) {
      try (InputStream inputStream = jarFile.getInputStream(jarEntry)) {
        ClassReader cr = new ClassReader(inputStream);
        ClassNode classNode = new ClassNode(Opcodes.ASM8);
        cr.accept(classNode, 0);
        return classNode;
      }
    }
  }
  throw new ClassNotFoundException(jarEntryPathName);
}
 
源代码2 项目: bazel   文件: TryWithResourcesRewriter.java

public TryWithResourcesRewriter(
    ClassVisitor classVisitor,
    ClassLoader classLoader,
    Set<String> visitedExceptionTypes,
    AtomicInteger numOfTryWithResourcesInvoked,
    boolean hasCloseResourceMethod) {
  super(Opcodes.ASM8, classVisitor);
  this.classLoader = classLoader;
  this.visitedExceptionTypes = visitedExceptionTypes;
  this.numOfTryWithResourcesInvoked = numOfTryWithResourcesInvoked;
  this.hasCloseResourceMethod = hasCloseResourceMethod;
}
 
源代码3 项目: bazel   文件: NestBridgeRefConverter.java

NestBridgeRefConverter(
    @Nullable MethodVisitor methodVisitor, MethodKey methodKey, NestDigest nestDigest) {
  super(Opcodes.ASM8, methodVisitor);
  this.enclosingMethodKey = methodKey;
  this.nestDigest = nestDigest;

  directFieldAccessReplacer = new FieldAccessToBridgeRedirector();
  methodToBridgeRedirector = new MethodToBridgeRedirector(nestDigest);
}
 
源代码4 项目: bazel   文件: LambdaClassFixer.java

public AvoidJacocoInit(MethodVisitor dest) {
  super(Opcodes.ASM8, dest);
}
 
源代码5 项目: bazel   文件: InterfaceDesugaring.java

public InterfaceFieldWriteCollector(MethodVisitor mv) {
  super(Opcodes.ASM8, mv);
}
 
源代码6 项目: bazel   文件: HeaderClassLoader.java

public CodeStubber(ClassVisitor cv, ImmutableList<FieldInfo> interfaceFields) {
  super(Opcodes.ASM8, cv);
  this.interfaceFields = interfaceFields;
}
 
源代码7 项目: bazel   文件: LongCompareMethodRewriter.java

public LongCompareMethodRewriter(ClassVisitor cv, CoreLibraryRewriter rewriter) {
  super(Opcodes.ASM8, cv);
  this.rewriter = rewriter;
}
 
源代码8 项目: fabric-loader   文件: McVersionLookup.java

public FieldStringConstantVisitor(String fieldName) {
	super(Opcodes.ASM8);

	this.fieldName = fieldName;
}
 
源代码9 项目: bazel   文件: DefaultMethodClassFixer.java

public InterfaceInitializationNecessityDetector(String internalName) {
  super(Opcodes.ASM8);
  this.internalName = internalName;
}
 
源代码10 项目: bazel   文件: Java7Compatibility.java

public InlineMethodBody(MethodVisitor dest) {
  // We'll set the destination visitor in visitCode() to reduce the risk of copying anything
  // we didn't mean to copy
  super(Opcodes.ASM8, (MethodVisitor) null);
  this.dest = dest;
}
 

public ObjectsRequireNonNullMethodRewriter(ClassVisitor cv, CoreLibraryRewriter rewriter) {
  super(Opcodes.ASM8, cv);
  this.rewriter = rewriter;
}
 
源代码12 项目: bazel   文件: Java7Compatibility.java

public InlineOneMethod(String methodName, MethodVisitor dest) {
  super(Opcodes.ASM8);
  this.methodName = methodName;
  this.dest = dest;
}
 
源代码13 项目: bazel   文件: InterfaceDesugaring.java

public MultiplexAnnotations(@Nullable MethodVisitor dest, MethodVisitor annotationOnlyDest) {
  super(Opcodes.ASM8, dest);
  this.annotationOnlyDest = annotationOnlyDest;
}
 
源代码14 项目: bazel   文件: DefaultMethodClassFixer.java

public InstanceMethodRecorder(boolean ignoreEmulatedMethods) {
  super(Opcodes.ASM8);
  this.ignoreEmulatedMethods = ignoreEmulatedMethods;
}
 
源代码15 项目: bazel   文件: PrefixReferenceScanner.java

public PrefixReferenceMethodVisitor() {
  super(Opcodes.ASM8);
}
 
源代码16 项目: bazel   文件: BytecodeTypeInference.java

BytecodeTypeInference(int access, String owner, String name, String methodDescriptor) {
  super(Opcodes.ASM8);
  localVariableSlots = createInitialLocalVariableTypes(access, owner, name, methodDescriptor);
  previousFrame = FrameInfo.create(ImmutableList.copyOf(localVariableSlots), ImmutableList.of());
  this.methodSignature = owner + "." + name + methodDescriptor;
}
 
源代码17 项目: bazel   文件: NestDesugaring.java

public NestDesugaring(ClassVisitor classVisitor, NestDigest nestDigest) {
  super(Opcodes.ASM8, classVisitor);
  this.nestDigest = nestDigest;
}
 
源代码18 项目: bazel   文件: InterfaceDesugaring.java

public MultiplexAnnotationVisitor(
    @Nullable AnnotationVisitor dest, AnnotationVisitor... moreDestinations) {
  super(Opcodes.ASM8, dest);
  this.moreDestinations = moreDestinations;
}
 
源代码19 项目: bazel   文件: ClassMemberRetargetRewriter.java

ClassMemberRetargetMethodVisitor(MethodVisitor visitor) {
  super(Opcodes.ASM8, visitor);
}
 
源代码20 项目: bazel   文件: PrefixReferenceScanner.java

public PrefixReferenceScanner(String prefix) {
  super(Opcodes.ASM8);
  this.prefix = prefix;
}
 
 方法所在类
 同类方法