Examples of EmptyAnnotationVisitor


Examples of jodd.asm.EmptyAnnotationVisitor

  }

  @Override
  public AnnotationVisitor visitArray(final String name) {
    final List<Object> array = new ArrayList<Object>();
    return new EmptyAnnotationVisitor() {

      @Override
      public void visit(String name, Object value) {
        array.add(value);
      }
View Full Code Here

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

              isConstructorAutowired = true;
            }
            else if (INJECT_NAME.equals(desc)) {
              isConstructorAutowired = true;
            }
            return new EmptyAnnotationVisitor();
          }
        };
      }
      return new EmptyMethodVisitor();
    }
View Full Code Here

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

  }

  @Override
  public AnnotationVisitor visitArray(final String name) {
    final Set<Object> values = new LinkedHashSet<Object>();
    return new EmptyAnnotationVisitor() {

      @Override
      public void visit(String arg0, Object arg1) {
        if (arg1 instanceof Type && advancedValueProcessing) {
          try {
View Full Code Here

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

          @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

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

          def.setAspectStartLineNumber(aspectStartLineNumber);
          def.setAspectEndLineNumber(aspectEndLineNumber);
          def.setAspectName(aspectName);
          def.setType(ANNOTATION_TYPES.get(desc));

          return new EmptyAnnotationVisitor() {
            @Override
            public void visit(String name, Object value) {
              if ("value".equals(name) || "pointcut".equals(name)) {
                def.setPointcutExpression(value.toString());
              } else if ("argNames".equals(name)) {
                def.setArgNames(StringUtils.commaDelimitedListToStringArray(value.toString()));
              } else if ("returning".equals(name)) {
                def.setReturning(value.toString());
              } else if ("throwing".equals(name)) {
                def.setThrowing(value.toString());
              }
            }
          };
        }
        else {
          return new EmptyAnnotationVisitor();
        }
      }
    };
  }
View Full Code Here

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

          def.setAspectClassName(aspectClassName);
          def.setAspectName(aspectName);
          def.setAspectStartLineNumber(aspectStartLineNumber);
          def.setAspectEndLineNumber(aspectEndLineNumber);
 
          return new EmptyAnnotationVisitor() {
            public void visit(String name, Object value) {
              if ("defaultImpl".equals(name)) {
                def.setDefaultImplName(value.toString());
              } else if ("value".equals(name)) {
                def.setTypePattern(value.toString());
              }
            };
          };
        }
        else {
          return new EmptyAnnotationVisitor();
        }
      }
    };
  }
View Full Code Here

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

  @Override
  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    if (visible && ASPECT_ANNOTATION_DESC.equals(desc)) {
      classInfo.setAspectAnnotation(new AspectAnnotation());
      return new EmptyAnnotationVisitor() {
        @Override
        public void visit(String name, Object value) {
          if ("value".equals(name) && classInfo.hasAspectAnnotation()) {
            classInfo.getAspectAnnotation().setValue((String) value);
          }
        }
      };
    }
    return new EmptyAnnotationVisitor();
  }
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.