Examples of memberValuePairs()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.memberValuePairs()

    Annotation[] annotations = typeDeclaration.annotations;
    for (int i = 0; i < annotations.length; i++) {
      Annotation annotation = annotations[i];
      if (CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
        // found @Aspect(...)
        if (annotation.memberValuePairs() == null || annotation.memberValuePairs().length == 0) {
          // it is an @Aspect or @Aspect()
          // needs to use PerFromSuper if declaration extends a super
          // aspect
          PerClause.Kind kind = lookupPerClauseKind(typeDeclaration.binding.superclass);
          // if no super aspect, we have a @Aspect() means singleton
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.memberValuePairs()

    Annotation[] annotations = typeDeclaration.annotations;
    for (int i = 0; i < annotations.length; i++) {
      Annotation annotation = annotations[i];
      if (CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
        // found @Aspect(...)
        if (annotation.memberValuePairs() == null || annotation.memberValuePairs().length == 0) {
          // it is an @Aspect or @Aspect()
          // needs to use PerFromSuper if declaration extends a super
          // aspect
          PerClause.Kind kind = lookupPerClauseKind(typeDeclaration.binding.superclass);
          // if no super aspect, we have a @Aspect() means singleton
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.memberValuePairs()

        Annotation[] annotations = typeDeclaration.annotations;
        for (int i = 0; i < annotations.length; i++) {
            Annotation annotation = annotations[i];
            if (CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
                // found @Aspect(...)
                if (annotation.memberValuePairs() == null || annotation.memberValuePairs().length == 0) {
                    // it is an @Aspect or @Aspect()
                    // needs to use PerFromSuper if declaration extends a super aspect
                    PerClause.Kind kind = lookupPerClauseKind(typeDeclaration.binding.superclass);
                    // if no super aspect, we have a @Aspect() means singleton
                    if (kind == null) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation.memberValuePairs()

        Annotation[] annotations = typeDeclaration.annotations;
        for (int i = 0; i < annotations.length; i++) {
            Annotation annotation = annotations[i];
            if (CharOperation.equals(aspectSig, annotation.resolvedType.signature())) {
                // found @Aspect(...)
                if (annotation.memberValuePairs() == null || annotation.memberValuePairs().length == 0) {
                    // it is an @Aspect or @Aspect()
                    // needs to use PerFromSuper if declaration extends a super aspect
                    PerClause.Kind kind = lookupPerClauseKind(typeDeclaration.binding.superclass);
                    // if no super aspect, we have a @Aspect() means singleton
                    if (kind == null) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation.memberValuePairs()

        resizeContents(2);
      }
      final int elementNameIndex = constantPool.literalIndex(VALUE);
      contents[contentsOffset++] = (byte) (elementNameIndex >> 8);
      contents[contentsOffset++] = (byte) elementNameIndex;
      MethodBinding methodBinding = singleMemberAnnotation.memberValuePairs()[0].binding;
      if (methodBinding == null) {
        contentsOffset = attributeOffset;
      } else {
        generateElementValue(singleMemberAnnotation.memberValue, methodBinding.returnType, attributeOffset);
      }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation.memberValuePairs()

        }
      }
    } else if (annotation instanceof SingleMemberAnnotation) {
      // this is a single member annotation (one member value)
      SingleMemberAnnotation singleMemberAnnotation = (SingleMemberAnnotation) annotation;
      MethodBinding methodBinding = singleMemberAnnotation.memberValuePairs()[0].binding;
      if (methodBinding == null) {
        throw new MissingImplementationException(
            "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation [" + annotation + "]");
      } else {
        AnnotationValue av = generateElementValue(singleMemberAnnotation.memberValue, methodBinding.returnType);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation.memberValuePairs()

        throw new MissingImplementationException(
            "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation [" + annotation + "]");
      } else {
        AnnotationValue av = generateElementValue(singleMemberAnnotation.memberValue, methodBinding.returnType);
        annotationAJ.addNameValuePair(new AnnotationNameValuePair(new String(
            singleMemberAnnotation.memberValuePairs()[0].name), av));
      }
    } else if (annotation instanceof MarkerAnnotation) {
      return;
    } else {
      // this is something else...
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation.memberValuePairs()

            "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation [" + annotation + "]");
      }
    } else if (annotation instanceof SingleMemberAnnotation) {
      // this is a single member annotation (one member value)
      SingleMemberAnnotation singleMemberAnnotation = (SingleMemberAnnotation) annotation;
      MethodBinding methodBinding = singleMemberAnnotation.memberValuePairs()[0].binding;
      if (methodBinding == null) {
        throw new MissingImplementationException(
            "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation [" + annotation + "]");
      } else {
        AnnotationValue av = generateElementValue(singleMemberAnnotation.memberValue, methodBinding.returnType);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation.memberValuePairs()

        throw new MissingImplementationException(
            "Please raise an AspectJ bug.  AspectJ does not know how to convert this annotation [" + annotation + "]");
      } else {
        AnnotationValue av = generateElementValue(singleMemberAnnotation.memberValue, methodBinding.returnType);
        annotationAJ.addNameValuePair(new AnnotationNameValuePair(new String(
            singleMemberAnnotation.memberValuePairs()[0].name), av));
      }
    } else if (annotation instanceof MarkerAnnotation) {
      MarkerAnnotation markerAnnotation = (MarkerAnnotation) annotation;
    } else {
      // this is a marker annotation (no member value pairs)
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.Annotation.memberValuePairs()

    Class<? extends java.lang.annotation.Annotation> clazz = classLiteral.asSubclass(java.lang.annotation.Annotation.class);

    // Build the map of identifiers to values.
    Map<String, Object> identifierToValue = new HashMap<String, Object>();
    for (MemberValuePair mvp : annotation.memberValuePairs()) {
      // Method name
      String identifier = String.valueOf(mvp.name);

      // Value
      Expression expressionValue = mvp.value;
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.