Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation


}
protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
  // MarkerAnnotation ::= AnnotationName
  // MarkerTypeAnnotation ::= TypeAnnotationName
  MarkerAnnotation markerAnnotation = null;

  int oldIndex = this.identifierPtr;

  TypeReference typeReference = getAnnotationType();
  markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  if (isTypeAnnotation) {
    pushOnTypeAnnotationStack(markerAnnotation);
  } else {
    pushOnExpressionStack(markerAnnotation);
View Full Code Here


          normalAnnotation.declarationSourceEnd = pendingMemberValueName.value.sourceEnd;
          normalAnnotation.bits |= ASTNode.IsRecovered;

          annot = normalAnnotation;
        } else {
          MarkerAnnotation markerAnnotation = new MarkerAnnotation(typeReference, this.sourceStart);
          markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
          markerAnnotation.bits |= ASTNode.IsRecovered;

          annot = markerAnnotation;
        }
View Full Code Here

  if ((index = this.indexOfAssistIdentifier()) < 0) {
    super.consumeMarkerAnnotation(isTypeAnnotation);
    return;
  }

  MarkerAnnotation markerAnnotation = null;
  int length = this.identifierLengthStack[this.identifierLengthPtr];
  TypeReference typeReference;

  /* retrieve identifiers subset and whole positions, the assist node positions
    should include the entire replaced source. */

  char[][] subset = identifierSubSet(index);
  this.identifierLengthPtr--;
  this.identifierPtr -= length;
  long[] positions = new long[length];
  System.arraycopy(
    this.identifierPositionStack,
    this.identifierPtr + 1,
    positions,
    0,
    length);

  /* build specific assist on type reference */

  if (index == 0) {
    /* assist inside first identifier */
    typeReference = createSingleAssistTypeReference(
            assistIdentifier(),
            positions[0]);
  } else {
    /* assist inside subsequent identifier */
    typeReference =  createQualifiedAssistTypeReference(
            subset,
            assistIdentifier(),
            positions);
  }
  this.assistNode = typeReference;
  this.lastCheckPoint = typeReference.sourceEnd + 1;

  markerAnnotation = new MarkerAnnotation(typeReference, this.intStack[this.intPtr--]);
  markerAnnotation.declarationSourceEnd = markerAnnotation.sourceEnd;
  if (isTypeAnnotation) {
    pushOnTypeAnnotationStack(markerAnnotation);
  } else {
    pushOnExpressionStack(markerAnnotation);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation

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.