Examples of canAnnotationTargetType()


Examples of org.aspectj.weaver.ResolvedType.canAnnotationTargetType()

        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) {
          return;
        }
        reportUnmatchedTargetKindMessage(targetKinds, patternNode, scope, true);
      } else if (!targetsOtherThanTypeAllowed && !resolvedType.canAnnotationTargetType()) {
        // everything is incorrect since we've already checked whether we have the TYPE target annotation
        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) {
          return;
        }
View Full Code Here

Examples of org.aspectj.weaver.ResolvedType.canAnnotationTargetType()

        if (incorrectTargets.isEmpty()) {
          return data;
        }
        AnnotationTargetKind[] kinds = new AnnotationTargetKind[incorrectTargets.size()];
        incorrectTargetKinds.put(node, incorrectTargets.toArray(kinds));
      } else if (!targetsOtherThanTypeAllowed && !resolvedType.canAnnotationTargetType()) {
        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) {
          return data;
        }
        // exception here is if parameter annotations are allowed
View Full Code Here

Examples of org.aspectj.weaver.ResolvedType.canAnnotationTargetType()

      ResolvedType resolvedType = ((ExactAnnotationTypePattern)patternNode).getAnnotationType().resolve(scope.getWorld());
      if (targetsOtherThanTypeAllowed) {
        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) return;
        reportUnmatchedTargetKindMessage(targetKinds,patternNode,scope,true);
      } else if (!targetsOtherThanTypeAllowed && !resolvedType.canAnnotationTargetType()) {
        // everything is incorrect since we've already checked whether we have the TYPE target annotation
        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) return;
        reportUnmatchedTargetKindMessage(targetKinds,patternNode,scope,false);
      }
View Full Code Here

Examples of org.aspectj.weaver.ResolvedType.canAnnotationTargetType()

          incorrectTargets.add(targetKinds[i]);
        }
        if (incorrectTargets.isEmpty()) return data;
        AnnotationTargetKind[] kinds = new AnnotationTargetKind[incorrectTargets.size()];
        incorrectTargetKinds.put(node,(AnnotationTargetKind[]) incorrectTargets.toArray(kinds))
      } else if (!targetsOtherThanTypeAllowed && !resolvedType.canAnnotationTargetType()) {
        AnnotationTargetKind[] targetKinds = resolvedType.getAnnotationTargetKinds();
        if (targetKinds == null) return data;
        incorrectTargetKinds.put(node,targetKinds);
      }
        return data;
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.