Package cn.wensiqun.info

Examples of cn.wensiqun.info.AnnotationInfo


            }
        }
    }

  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationInfo annotationInfo = new AnnotationInfo(desc);
    if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
          info.getAnnotations().add(annotationInfo);
          List<ClassInfo> infos = classGrep.getAnnotatedClassMap().get(annotationInfo.getName());
          if (infos == null) {
              infos = new ArrayList<ClassInfo>();
              classGrep.getAnnotatedClassMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          info.setCompliance(true);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
View Full Code Here


    this.info = info;
    this.fieldGrep = grepClient.getFieldGrep();
  }

  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationInfo annotationInfo = new AnnotationInfo(desc);
    if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
          info.getAnnotations().add(annotationInfo);
          List<FieldInfo> infos = fieldGrep.getAnnotatedFieldMap().get(annotationInfo.getName());
          if (infos == null) {
              infos = new ArrayList<FieldInfo>();
              fieldGrep.getAnnotatedFieldMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
View Full Code Here

  public void visitEnum(String name, String desc, String value) {
  }

  public AnnotationVisitor visitAnnotation(String name, String desc) {
    AnnotationInfo annotationInfo = new AnnotationInfo(desc);
    if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
          info.getAnnotations().add(annotationInfo);
          List<AnnotationInfo> infos = annotationGrep.getAnnotatedAnnotationMap().get(annotationInfo.getName());
          if (infos == null) {
              infos = new ArrayList<AnnotationInfo>();
              annotationGrep.getAnnotatedAnnotationMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
View Full Code Here

    this.info = info;
    this.methodGrep = grepClient.getMethodGrep();
  }

  public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    AnnotationInfo annotationInfo = new AnnotationInfo(desc);
    if(grepClient.getAnnotationCriterion().contains(annotationInfo.getName())){
          info.getAnnotations().add(annotationInfo);
          List<MethodInfo> infos = methodGrep.getAnnotatedMethodInfoMap().get(annotationInfo.getName());
          if (infos == null) {
              infos = new ArrayList<MethodInfo>();
              methodGrep.getAnnotatedMethodInfoMap().put(annotationInfo.getName(), infos);
          }
          infos.add(info);
          return new AnnotationDefVisitor(grepClient, annotationInfo);
    }else{
      return new EmptyVisitor();
View Full Code Here

    }
  }

  public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) {
        List<AnnotationInfo> annotationInfos = info.getParameterAnnotations(parameter);
        AnnotationInfo annotationInfo = new AnnotationInfo(desc);
        annotationInfos.add(annotationInfo);
        return new AnnotationDefVisitor(grepClient, annotationInfo);
  }
View Full Code Here

TOP

Related Classes of cn.wensiqun.info.AnnotationInfo

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.