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

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


    sourceEnd = method.sourceEnd;
  } else {
    TypeReference returnType = ((MethodDeclaration) method).returnType;
    sourceStart = returnType.sourceStart;
    if (returnType instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference typeReference = (ParameterizedSingleTypeReference) returnType;
      TypeReference[] typeArguments = typeReference.typeArguments;
      if (typeArguments[typeArguments.length - 1].sourceEnd > typeReference.sourceEnd) {
        sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
      } else {
        sourceEnd = returnType.sourceEnd;
View Full Code Here


      int fragmentLength = fragments.size();
      if (fragmentLength == 2) {
        Object firstFragment = fragments.get(0);
        if (firstFragment instanceof char[]) {
          // parameterized single type
          return new ParameterizedSingleTypeReference((char[]) firstFragment, (TypeReference[]) fragments.get(1), dim, ((long) start << 32) + end);
        }
      }
      // parameterized qualified type
      identCount = 0;
      for (int i = 0; i < fragmentLength; i ++) {
View Full Code Here

      int fragmentLength = fragments.size();
      if (fragmentLength == 2) {
        char[][] firstFragment = (char[][]) fragments.get(0);
        if (firstFragment.length == 1) {
          // parameterized single type
          return new ParameterizedSingleTypeReference(firstFragment[0], (TypeReference[]) fragments.get(1), dim, ((long) start << 32) + end);
        }
      }
      // parameterized qualified type
      identCount = 0;
      for (int i = 0; i < fragmentLength; i ++) {
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

    sourceEnd = method.sourceEnd;
  } else {
    TypeReference returnType = ((MethodDeclaration) method).returnType;
    sourceStart = returnType.sourceStart;
    if (returnType instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference typeReference = (ParameterizedSingleTypeReference) returnType;
      TypeReference[] typeArguments = typeReference.typeArguments;
      if (typeArguments[typeArguments.length - 1].sourceEnd > typeReference.sourceEnd) {
        sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
      } else {
        sourceEnd = returnType.sourceEnd;
View Full Code Here

      int fragmentLength = fragments.size();
      if (fragmentLength == 2) {
        Object firstFragment = fragments.get(0);
        if (firstFragment instanceof char[]) {
          // parameterized single type
          return new ParameterizedSingleTypeReference((char[]) firstFragment, (TypeReference[]) fragments.get(1), dim, ((long) start << 32) + end);
        }
      }
      // parameterized qualified type
      identCount = 0;
      for (int i = 0; i < fragmentLength; i ++) {
View Full Code Here

      int fragmentLength = fragments.size();
      if (fragmentLength == 2) {
        char[][] firstFragment = (char[][]) fragments.get(0);
        if (firstFragment.length == 1) {
          // parameterized single type
          return new ParameterizedSingleTypeReference(firstFragment[0], (TypeReference[]) fragments.get(1), dim, ((long) start << 32) + end);
        }
      }
      // parameterized qualified type
      identCount = 0;
      for (int i = 0; i < fragmentLength; i ++) {
View Full Code Here

    sourceEnd = method.sourceEnd;
  } else {
    TypeReference returnType = ((MethodDeclaration) method).returnType;
    sourceStart = returnType.sourceStart;
    if (returnType instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference typeReference = (ParameterizedSingleTypeReference) returnType;
      TypeReference[] typeArguments = typeReference.typeArguments;
      if (typeArguments[typeArguments.length - 1].sourceEnd > typeReference.sourceEnd) {
        sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
      } else {
        sourceEnd = returnType.sourceEnd;
View Full Code Here

    arguments, shortArguments, annotation.sourceStart, annotation.sourceEnd);
}
public void nullAnnotationUnsupportedLocation(TypeReference type) {
  int sourceEnd = type.sourceEnd;
  if (type instanceof ParameterizedSingleTypeReference) {
    ParameterizedSingleTypeReference typeReference = (ParameterizedSingleTypeReference) type;
    TypeReference[] typeArguments = typeReference.typeArguments;
    if (typeArguments[typeArguments.length - 1].sourceEnd > typeReference.sourceEnd) {
      sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
    } else {
      sourceEnd = type.sourceEnd;
View Full Code Here

    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

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.