Examples of AnnotationInfo

  • org.apache.myfaces.orchestra.annotation.AnnotationInfo
    Holds information extracted out of a single bean using its annotations.
  • org.codehaus.aspectwerkz.annotation.AnnotationInfo
    Holds the annotation proxy instance and the name of the annotation. @author Jonas Bon�r
  • org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo
    Holds info to create a TemporaryAnnotation. @since 1.0
  • org.glassfish.apf.AnnotationInfo
    Instances encapsulate all information necessary for an AnnotationHandler to process an annotation. In particular, instances of this class provide access to :

  • the Annotation instance
  • the ProcessingContext of the tool
  • the AnnotatedElement which is a reference to the annotation element (Type, Method...).

    @see java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement @author Jerome Dochez
  • org.jboss.reflect.spi.AnnotationInfo
    Annotation Info @author Bill Burke @author Adrian Brock
  • org.restlet.engine.resource.AnnotationInfo
    Descriptor for method annotations. @author Jerome Louvel

  • Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

        if (reporter instanceof IncrementalReporter) {
          MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
          processor.setProblemId(problemId);
          processor.setAdditionalFixInfo(attributeValueText);
          message.setAttribute(QUICKASSISTPROCESSOR, processor);
          AnnotationInfo info = new AnnotationInfo(message);
          ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
        }
        else {
          reporter.addMessage(this, message);
        }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

          if (reporter instanceof IncrementalReporter) {
            MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
            processor.setProblemId(ProblemIDsXML.AttrsInEndTag);
            message.setAttribute(QUICKASSISTPROCESSOR, processor);

            AnnotationInfo info = new AnnotationInfo(message);
            ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
          }
          else {
            reporter.addMessage(this, message);
          }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

          if (reporter instanceof IncrementalReporter) {
            MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
            processor.setProblemId(ProblemIDsXML.MissingClosingBracket);
            message.setAttribute(QUICKASSISTPROCESSOR, processor);

            AnnotationInfo info = new AnnotationInfo(message);
            ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
          }
          else {
            reporter.addMessage(this, message);
          }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

            if (reporter instanceof IncrementalReporter) {
              MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
              processor.setProblemId(ProblemIDsXML.EmptyTag);
              message.setAttribute(QUICKASSISTPROCESSOR, processor);

              AnnotationInfo info = new AnnotationInfo(message);
              ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
            }
            else {
              reporter.addMessage(this, message);
            }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

                  MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                  processor.setProblemId(ProblemIDsXML.MissingAttrValue);
                  processor.setAdditionalFixInfo(additionalFixInfo);
                  message.setAttribute(QUICKASSISTPROCESSOR, processor);

                  AnnotationInfo info = new AnnotationInfo(message);
                  ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
                }
                else {
                  reporter.addMessage(this, message);
                }
                errorCount++;
              }
            }
            // name but no '=' (XML only)
            else if ((attrState == 1) && (i >= 1)) {
              // create annotation
              ITextRegion previousRegion = textRegions.get(i - 1);
              if (!(previousRegion instanceof ITextRegionContainer)) {
                Object[] args = {structuredDocumentRegion.getText(previousRegion)};
                String messageText = NLS.bind(XMLUIMessages.Attribute__has_no_value, args);
                int start = structuredDocumentRegion.getStartOffset(previousRegion);
                int textLength = structuredDocumentRegion.getText(previousRegion).trim().length();
                int lineNo = getLineNumber(start);

                LocalizedMessage message = new LocalizedMessage(SEVERITY_ATTRIBUTE_HAS_NO_VALUE, messageText);
                message.setOffset(start);
                message.setLength(textLength);
                message.setLineNo(lineNo);

                if (reporter instanceof IncrementalReporter) {
                  MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                  processor.setProblemId(ProblemIDsXML.NoAttrValue);
                  processor.setAdditionalFixInfo(structuredDocumentRegion.getText(previousRegion));
                  message.setAttribute(QUICKASSISTPROCESSOR, processor);

                  AnnotationInfo info = new AnnotationInfo(message);
                  ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
                }
                else {
                  reporter.addMessage(this, message);
                }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

              if (reporter instanceof IncrementalReporter) {
                MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                processor.setProblemId(ProblemIDsXML.SpacesBeforeTagName);
                message.setAttribute(QUICKASSISTPROCESSOR, processor);

                AnnotationInfo info = new AnnotationInfo(message);
                ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
              }
              else {
                reporter.addMessage(this, message);
              }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

              if (reporter instanceof IncrementalReporter) {
                MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                processor.setProblemId(ProblemIDsXML.NamespaceInPI);
                message.setAttribute(QUICKASSISTPROCESSOR, processor);

                AnnotationInfo info = new AnnotationInfo(message);
                ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
              }
              else {
                reporter.addMessage(this, message);
              }
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

                  MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                  processor.setProblemId(ProblemIDsXML.MissingEndTag);
                  processor.setAdditionalFixInfo(additionalFixInfo);
                  message.setAttribute(QUICKASSISTPROCESSOR, processor);

                  AnnotationInfo info = new AnnotationInfo(message);

                  ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
                }
                else {
                  reporter.addMessage(this, message);
                }
              }
            }
          }
          else {
            IStructuredDocumentRegion startRegion = xmlNode.getStartStructuredDocumentRegion();
            if (startRegion == null || startRegion.isDeleted()) {
              // analyze the tag (check self closing)
              ITextRegionList regions = endRegion.getRegions();
              ITextRegion r = null;
              int start = sdRegion.getStart();
              int length = sdRegion.getTextLength();
              for (int i = 0; i < regions.size(); i++) {
                r = regions.get(i);
                if (r.getType() == DOMRegionContext.XML_TAG_NAME) {
                  tagName = sdRegion.getText(r);
                  start = sdRegion.getStartOffset(r);
                  length = r.getTextLength();
                }
              }

              if (tagName != null) {
                Object[] args = {tagName};
                String messageText = NLS.bind(XMLUIMessages.Missing_start_tag_, args);

                int lineNumber = getLineNumber(start);

                IMessage message = new LocalizedMessage(SEVERITY_MISSING_START_TAG, messageText);
                message.setOffset(start);
                message.setLength(length);
                message.setLineNo(lineNumber);

                if (reporter instanceof IncrementalReporter) {
                  Object[] additionalFixInfo = getStartEndFixInfo(xmlNode, tagName, r);

                  MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
                  processor.setProblemId(ProblemIDsXML.MissingStartTag);
                  processor.setAdditionalFixInfo(additionalFixInfo);
                  message.setAttribute(QUICKASSISTPROCESSOR, processor);

                  AnnotationInfo info = new AnnotationInfo(message);

                  ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
                }
                else {
                  reporter.addMessage(this, message);
    View Full Code Here

    Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo

            if (reporter instanceof IncrementalReporter) {
              MarkupQuickAssistProcessor processor = new MarkupQuickAssistProcessor();
              processor.setProblemId(ProblemIDsXML.SpacesBeforePI);
              message.setAttribute(QUICKASSISTPROCESSOR, processor);
     
              AnnotationInfo info = new AnnotationInfo(message);
              ((IncrementalReporter) reporter).addAnnotationInfo(this, info);
            }
            else {
              reporter.addMessage(this, message);
            }
    View Full Code Here

    Examples of org.glassfish.apf.AnnotationInfo

            // process the method parameters...
            for (Annotation[] parameterAnnotations : parametersAnnotations) {
                logStart(ctx.getHandler(), ElementType.PARAMETER, null);
                if (parameterAnnotations!=null) {
                    for (Annotation annotation : parameterAnnotations) {
                        AnnotationInfo info = new AnnotationInfo(ctx, null, annotation, ElementType.PARAMETER);
                        process(ctx, info, result);
                        dumpProcessingResult(result);
                    }
                }
                logEnd(ctx.getHandler(), ElementType.PARAMETER, null);
    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.