Examples of ArrayQualifiedTypeReference


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

          handleSig.append('>');
        }
      }
      handleSig.append(';');
    } else if (ref instanceof ArrayQualifiedTypeReference) {
      ArrayQualifiedTypeReference atr = (ArrayQualifiedTypeReference) ref;
      for (int i = 0; i < atr.dimensions(); i++) {
        handleSig.append("\\[");
      }
      TypeBinding typeB = atr.resolvedType;
      if (typeB == null) {
        typeB = atr.resolveType(scope);
      }
      if (typeB.leafComponentType().isBaseType()) {
        handleSig.append(tb.leafComponentType().signature());
      } else {
        char[][] tokens = atr.tokens;
View Full Code Here

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

    } else { // qualified type reference
      char[][] identifiers =  CharOperation.splitOn('.', type, 0, dimStart);
      if (dim == 0) {
        return new QualifiedTypeReference(identifiers, new long[identifiers.length]);
      } else {
        return new ArrayQualifiedTypeReference(identifiers, dim, new long[identifiers.length]);
      }
    }
  }
View Full Code Here

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

    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

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

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

        }
        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

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

        }
        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

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

    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

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

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

        }
        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

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

        }
        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
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.