Package org.springframework.ide.eclipse.core.type.asm

Examples of org.springframework.ide.eclipse.core.type.asm.EmptyMethodVisitor


    private boolean isConstructorAutowired = false;

    @Override
    public MethodVisitor visitMethod(int modifier, String name, String params, String arg3, String[] arg4) {
      if (CONSTRUCTOR_NAME.equals(name)) {
        return new EmptyMethodVisitor() {
          @Override
          public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
            if (AUTOWIRED_NAME.equals(desc)) {
              isConstructorAutowired = true;
            }
            else if (INJECT_NAME.equals(desc)) {
              isConstructorAutowired = true;
            }
            return new EmptyAnnotationVisitor();
          }
        };
      }
      return new EmptyMethodVisitor();
    }
View Full Code Here


  public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, String[] exceptions) {
    String methodKey = name + desc;
    if (!visitedMethods.contains(methodKey)) {
      visitedMethods.add(methodKey);

      return new EmptyMethodVisitor() {
        @Override
        public AnnotationVisitor visitAnnotation(final String annotationDesc, boolean visible) {
          final String annotationClass = Type.getType(annotationDesc).getClassName();
          final IMethod method = getMethodFromSignature(name, desc);
View Full Code Here

    }

    @Override
    public MethodVisitor visitMethod(int modifier, final String name, String params, String arg3, String[] arg4) {
      if (name.startsWith("set")) {
        return new EmptyMethodVisitor() {
          @Override
          public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
            if (requiredAnnotationTypes.contains(desc)) {
              requiredPropertyNames.add(java.beans.Introspector.decapitalize(name.substring(3)));
            }
            return new EmptyAnnotationVisitor();
          }
        };
      }
      return new EmptyMethodVisitor();
    }
View Full Code Here

      buf.append(")");
    }

    final String visitedMethod = buf.toString();

    return new EmptyMethodVisitor() {
      @Override
      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        if (visible && ANNOTATION_TYPES.containsKey(desc)) {
          final AnnotationAspectDefinition def = new AnnotationAspectDefinition();
          aspectDefinitions.add(def);
View Full Code Here

  @Override
  public MethodVisitor visitMethod(int access, String name, String desc,
      String signature, String[] exceptions) {
    classInfo.getMethodNames().add(name);
    return new EmptyMethodVisitor();
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.type.asm.EmptyMethodVisitor

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.