Examples of ParameterizedSingleTypeReference


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

    this.astLengthPtr--;
  }
}
protected void checkForDiamond(TypeReference allocType) {
  if (allocType instanceof ParameterizedSingleTypeReference) {
    ParameterizedSingleTypeReference type = (ParameterizedSingleTypeReference) allocType;
    if (type.typeArguments == TypeReference.NO_TYPE_ARGUMENTS) {
      if (this.options.sourceLevel < ClassFileConstants.JDK1_7) {
        problemReporter().diamondNotBelow17(allocType);
      }
      if (this.options.sourceLevel > ClassFileConstants.JDK1_4) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=351965
View Full Code Here

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

  TypeReference[][] typeArguments = new TypeReference[tokensSize][];
  char[][] tokens = new char[tokensSize][];
  long[] positions = new long[tokensSize];
  Annotation [][] typeAnnotations = null;
  if (rightSide instanceof ParameterizedSingleTypeReference) {
    ParameterizedSingleTypeReference singleParameterizedTypeReference = (ParameterizedSingleTypeReference) rightSide;
    tokens[nameSize] = singleParameterizedTypeReference.token;
    positions[nameSize] = (((long) singleParameterizedTypeReference.sourceStart) << 32) + singleParameterizedTypeReference.sourceEnd;
    typeArguments[nameSize] = singleParameterizedTypeReference.typeArguments;
    if (singleParameterizedTypeReference.annotations != null) {
      typeAnnotations = new Annotation[tokensSize][];
View Full Code Here

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

    } else {
      typeArguments = new TypeReference[currentTypeArgumentsLength];
      this.genericsPtr -= currentTypeArgumentsLength;
      System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments, 0, currentTypeArgumentsLength);
    }
    ParameterizedSingleTypeReference parameterizedSingleTypeReference = new ParameterizedSingleTypeReference(this.identifierStack[this.identifierPtr], typeArguments, dim, annotationsOnDimensions, this.identifierPositionStack[this.identifierPtr--]);
    if (dim != 0) {
      parameterizedSingleTypeReference.sourceEnd = this.endStatementPosition;
    }
    /* We used to eagerly mark the PSTR as constituting diamond usage if we encountered <>, but that is too eager and
       complicates error handling by making it hard to distinguish legitimate use cases from ill formed ones. We are
View Full Code Here

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

        reference instanceof CompletionOnParameterizedQualifiedTypeReference) {
      char[][] typeName = reference.getTypeName();
      if (typeName[typeName.length - 1].length == 0) return true;
    }
    if (reference instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference parameterizedReference = (ParameterizedSingleTypeReference) reference;
      TypeReference[] typeArguments = parameterizedReference.typeArguments;
      if (typeArguments != null) {
        for (int i = 0; i < typeArguments.length; i++) {
          if (hasEmptyName(typeArguments[i], assistNode)) return true;
        }
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.