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

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


    ParameterizedQualifiedTypeReference reference = (ParameterizedQualifiedTypeReference) node;
    if (index < reference.sourcePositions.length) {
      return (int) reference.sourcePositions[index];
    }
  } else if (node instanceof ArrayQualifiedTypeReference) {
    ArrayQualifiedTypeReference reference = (ArrayQualifiedTypeReference) node;
    int length = reference.sourcePositions.length;
    if (index < length) {
      return (int) reference.sourcePositions[index];
    }
    return (int) reference.sourcePositions[length - 1];
View Full Code Here


        }
        char[][] identifiers = extractIdentifiers(typeSignature, nameFragmentStart, nameFragmentEnd, identCount);
        if (dim == 0) {
          return new QualifiedTypeReference(identifiers, positions);
        } else {
          return new ArrayQualifiedTypeReference(identifiers, dim, positions);
        }
      }
    } else { // parameterized
      // rebuild type reference from available fragments: char[][], arguments, char[][], arguments...
      // check trailing qualified name
View Full Code Here

        }
        char[][] identifiers = CharOperation.splitOn('.', typeName, nameFragmentStart, nameFragmentEnd+1);
        if (dim == 0) {
          return new QualifiedTypeReference(identifiers, positions);
        } else {
          return new ArrayQualifiedTypeReference(identifiers, dim, positions);
        }
      }
    } else { // parameterized
      // rebuild type reference from available fragments: char[][], arguments, char[][], arguments...
      // check trailing qualified name
View Full Code Here

    if (type instanceof ReferenceBinding) {
      char[][] name = ((ReferenceBinding) type).compoundName;
      end = (int) ref.sourcePositions[name.length - 1];
    }
  } else if (location instanceof ArrayQualifiedTypeReference) {
    ArrayQualifiedTypeReference arrayQualifiedTypeReference = (ArrayQualifiedTypeReference) location;
    if (isRecoveredName(arrayQualifiedTypeReference.tokens)) return;
    TypeBinding leafType = type.leafComponentType();
    if (leafType instanceof ReferenceBinding) {
      char[][] name = ((ReferenceBinding) leafType).compoundName; // problem type will tell how much got resolved
      end = (int) arrayQualifiedTypeReference.sourcePositions[name.length-1];
View Full Code Here

    if (type instanceof ReferenceBinding) {
      char[][] name = ((ReferenceBinding) type).compoundName;
      end = (int) ref.sourcePositions[name.length - 1];
    }
  } else if (location instanceof ArrayQualifiedTypeReference) {
    ArrayQualifiedTypeReference arrayQualifiedTypeReference = (ArrayQualifiedTypeReference) location;
    if (isRecoveredName(arrayQualifiedTypeReference.tokens)) return;
    TypeBinding leafType = type.leafComponentType();
    if (leafType instanceof ReferenceBinding) {
      char[][] name = ((ReferenceBinding) leafType).compoundName; // problem type will tell how much got resolved
      end = (int) arrayQualifiedTypeReference.sourcePositions[name.length-1];
View Full Code Here

    ParameterizedQualifiedTypeReference reference = (ParameterizedQualifiedTypeReference) node;
    if (index < reference.sourcePositions.length) {
      return (int) reference.sourcePositions[index];
    }
  } else if (node instanceof ArrayQualifiedTypeReference) {
    ArrayQualifiedTypeReference reference = (ArrayQualifiedTypeReference) node;
    int length = reference.sourcePositions.length;
    if (index < length) {
      return (int) reference.sourcePositions[index];
    }
    return (int) reference.sourcePositions[length - 1];
View Full Code Here

        length);
      if (dim == 0) {
        ref = new QualifiedTypeReference(tokens, positions);
      } else {
        annotationsOnDimensions = getAnnotationsOnDimensions(dim);
        ref = new ArrayQualifiedTypeReference(tokens, dim, annotationsOnDimensions, positions);
        ref.sourceEnd = this.endPosition;
        if (annotationsOnDimensions != null) {
          ref.bits |= ASTNode.HasTypeAnnotations;
        }
      }
View Full Code Here

        }
        char[][] identifiers = extractIdentifiers(typeSignature, nameFragmentStart, nameFragmentEnd, identCount);
        if (dim == 0) {
          return new QualifiedTypeReference(identifiers, positions);
        } else {
          return new ArrayQualifiedTypeReference(identifiers, dim, positions);
        }
      }
    } else { // parameterized
      // rebuild type reference from available fragments: char[][], arguments, char[][], arguments...
      // check trailing qualified name
View Full Code Here

        }
        char[][] identifiers = CharOperation.splitOn('.', typeName, nameFragmentStart, nameFragmentEnd+1);
        if (dim == 0) {
          return new QualifiedTypeReference(identifiers, positions);
        } else {
          return new ArrayQualifiedTypeReference(identifiers, dim, positions);
        }
      }
    } else { // parameterized
      // rebuild type reference from available fragments: char[][], arguments, char[][], arguments...
      // check trailing qualified name
View Full Code Here

TOP

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

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.