Examples of EmptyClassVisitor


Examples of com.comphenix.protocol.reflect.compiler.EmptyClassVisitor

    final ClassReader reader = new ClassReader(tileEntityClass.getCanonicalName());
   
    final String tagCompoundName = getJarName(MinecraftReflection.getNBTCompoundClass());
    final String expectedDesc = "(L" + tagCompoundName + ";)V";
   
    reader.accept(new EmptyClassVisitor() {
      @Override
      public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
        final String methodName = name;
       
        // Detect read/write calls to NBTTagCompound
View Full Code Here

Examples of com.comphenix.protocol.reflect.compiler.EmptyClassVisitor

   
    // The method we are looking for
    final String methodName = method.getName();
    final String methodDescription = Type.getMethodDescriptor(method);
   
    reader.accept(new EmptyClassVisitor() {
      @Override
      public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
        // Check method
        if (methodName.equals(name) && methodDescription.equals(desc)) {
          return new EmptyMethodVisitor() {
View Full Code Here

Examples of com.comphenix.protocol.reflect.compiler.EmptyClassVisitor

     
      // HACK - class is found by inspecting code
      try {
        ClassReader reader = new ClassReader(packetUpdateAttributes.getCanonicalName());
       
        reader.accept(new EmptyClassVisitor() {
          @Override
          public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
            // The read method
            if (desc.startsWith("(Ljava/io/DataInput")) {
              return new EmptyMethodVisitor() {
View Full Code Here

Examples of com.tonicsystems.jarjar.EmptyClassVisitor

import com.tonicsystems.jarjar.EmptyClassVisitor;

public class RemappingClassTransformer extends RemappingClassAdapter
{
    public RemappingClassTransformer(Remapper pr) {
        super(new EmptyClassVisitor(), pr);
    }
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

  private void readAdviceData() {
    if (ready == true) {
      return;
    }

    adviceClassReader.accept(new EmptyClassVisitor() {

      /**
       * Stores advice reference.
       */
      @Override
 
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

  /**
   * Checks for all public super methods that are not overridden.
   */
  protected void processSuperMethods() {
    for (ClassReader cr : targetClassInfo.superClassReaders) {
      cr.accept(new EmptyClassVisitor() {

        String declaredClassName;

        @Override
        public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

    final MethodVisitor mv = wd.dest.visitMethod(access, td.methodName(), td.msign.getDescription(), null, null);
    mv.visitCode();

    //*** VISIT ADVICE - called for each aspect and each method
    aspectData.getAdviceClassReader().accept(new EmptyClassVisitor() {

      @Override
      public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {

        if (name.equals(executeMethodName) == false) {
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

    final MethodVisitor mv = wd.dest.visitMethod(access, td.methodName(), td.msign.getDescription(), null, null);
    mv.visitCode();

    //*** VISIT ADVICE - called for each aspect and each method
    aspectData.getAdviceClassReader().accept(new EmptyClassVisitor() {

      @Override
      public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {

        if (name.equals(executeMethodName) == false) {
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

  private void readAdviceData() {
    if (ready == true) {
      return;
    }

    adviceClassReader.accept(new EmptyClassVisitor() {

      /**
       * Stores advice reference.
       */
      @Override
 
View Full Code Here

Examples of jodd.asm.EmptyClassVisitor

  /**
   * Checks for all public super methods that are not overridden.
   */
  protected void processSuperMethods() {
    for (ClassReader cr : targetClassInfo.superClassReaders) {
      cr.accept(new EmptyClassVisitor() {

        String declaredClassName;

        @Override
        public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.