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

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


    if (singleParameterizedTypeReference.annotations != null) {
      typeAnnotations = new Annotation[tokensSize][];
        typeAnnotations[nameSize] = singleParameterizedTypeReference.annotations[0];
    }
  } else if (rightSide instanceof SingleTypeReference) {
    SingleTypeReference singleTypeReference = (SingleTypeReference) rightSide;
    tokens[nameSize] = singleTypeReference.token;
    positions[nameSize] = (((long) singleTypeReference.sourceStart) << 32) + singleTypeReference.sourceEnd;
    if (singleTypeReference.annotations != null) {
      typeAnnotations = new Annotation[tokensSize][];
      typeAnnotations[nameSize] =  singleTypeReference.annotations[0];
View Full Code Here


}

protected TypeReference getAnnotationType() {
  int length = this.identifierLengthStack[this.identifierLengthPtr--];
  if (length == 1) {
    return new SingleTypeReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  } else {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
View Full Code Here

    } else if (length == 1) {
      // single type reference
      this.genericsLengthPtr--; // pop the 0
      if (dim == 0) {
        ref =
          new SingleTypeReference(
            this.identifierStack[this.identifierPtr],
            this.identifierPositionStack[this.identifierPtr--]);
      } else {
        annotationsOnDimensions = getAnnotationsOnDimensions(dim);
        ref =
View Full Code Here

      return true;
    // Next, find out whether any of the constructor parameters are the same as one of the
    // class type variables. If yes, diamond cannot be used.
    TypeReference ref;
    if (cn.length == 1) {
      ref = new SingleTypeReference(cn[0], 0);
    } else {
      ref = new QualifiedTypeReference(cn,new long[cn.length]);
    }
    switch (scope.kind) {
      case Scope.METHOD_SCOPE :
View Full Code Here

TOP

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

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.