Package com.comphenix.protocol.reflect.compiler

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


   
    // 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

     
      // 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

TOP

Related Classes of com.comphenix.protocol.reflect.compiler.EmptyClassVisitor

Copyright © 2018 www.massapicom. 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.