Package com.artemis.weaver

Examples of com.artemis.weaver.ConstructorInvocationVisitor


      if (PACKED == meta.annotation && instanceFields(meta).size() > 0) {
        // constructor is replaced, so drop the default one.
        return null;
      } else {
        method = cv.visitMethod(access, name, desc, signature, exceptions);
        method = new ConstructorInvocationVisitor(method, meta);
      }
    } else {
      method = cv.visitMethod(access, name, desc, signature, exceptions);
    }
   
View Full Code Here


  @Override
  public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
    MethodVisitor method = cv.visitMethod(access, name, desc, signature, exceptions);
   
    if ("<init>".equals(name))
      method = new ConstructorInvocationVisitor(method, meta);
    if ("reset".equals(name) && "()V".equals(desc))
      method = new ResetMethodVisitor(method, meta);
   
    return method;
  }
View Full Code Here

TOP

Related Classes of com.artemis.weaver.ConstructorInvocationVisitor

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.