Package org.aspectj.weaver

Examples of org.aspectj.weaver.AnnotationTargetKind


          return data;
        }
        // exception here is if parameter annotations are allowed
        if (parameterTargettingAnnotationsAllowed) {
          for (int i = 0; i < targetKinds.length; i++) {
            AnnotationTargetKind annotationTargetKind = targetKinds[i];
            if (annotationTargetKind.getName().equals("PARAMETER") && node.isForParameterAnnotationMatch()) {
              return data;
            }
          }
        }
        incorrectTargetKinds.put(node, targetKinds);
View Full Code Here


  private void reportUnmatchedTargetKindMessage(AnnotationTargetKind[] annotationTargetKinds, PatternNode node, IScope scope,
      boolean checkMatchesMemberKindName) {
    StringBuffer targetNames = new StringBuffer("{");
    for (int i = 0; i < annotationTargetKinds.length; i++) {
      AnnotationTargetKind targetKind = annotationTargetKinds[i];
      if (checkMatchesMemberKindName && kind.getName().equals(targetKind.getName())) {
        return;
      }
      if (i < (annotationTargetKinds.length - 1)) {
        targetNames.append("ElementType." + targetKind.getName() + ",");
      } else {
        targetNames.append("ElementType." + targetKind.getName() + "}");
      }
    }
    scope.getWorld().getLint().unmatchedTargetKind.signal(new String[] { node.toString(), targetNames.toString() },
        getSourceLocation(), new ISourceLocation[0]);
  }
View Full Code Here

        PatternNode node,
        IScope scope,
        boolean checkMatchesMemberKindName) {
      StringBuffer targetNames = new StringBuffer("{");
      for (int i = 0; i < annotationTargetKinds.length; i++) {
      AnnotationTargetKind targetKind = annotationTargetKinds[i];
      if (checkMatchesMemberKindName && kind.getName().equals(targetKind.getName())) {
        return;
      }
      if (i < (annotationTargetKinds.length - 1)) {
        targetNames.append("ElementType." + targetKind.getName() + ",");
      } else {
        targetNames.append("ElementType." + targetKind.getName() + "}");
      }
    }
    scope.getWorld().getLint().unmatchedTargetKind.signal(new String[] {node.toString(),targetNames.toString()}, getSourceLocation(), new ISourceLocation[0]);
    }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.AnnotationTargetKind

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.