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

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


    } 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

        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

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

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.