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

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


  }
  TypeBinding missingType = (TypeBinding) missingTypes.get(0);
  int start = location.sourceStart;
  int end = location.sourceEnd;
  if (location instanceof QualifiedAllocationExpression) {
    QualifiedAllocationExpression qualifiedAllocation = (QualifiedAllocationExpression) location;
    if (qualifiedAllocation.anonymousType != null) {
      start = qualifiedAllocation.anonymousType.sourceStart;
      end = qualifiedAllocation.anonymousType.sourceEnd;
    }
  }
View Full Code Here


  }

  TypeDeclaration updatedType = updatedTypeDeclaration(depth + 1, knownTypes);
  if (updatedType != null && (updatedType.bits & ASTNode.IsAnonymousType) != 0){
    /* in presence of an anonymous type, we want the full allocation expression */
    QualifiedAllocationExpression allocation = updatedType.allocation;

    if (allocation.statementEnd == -1) {
      allocation.statementEnd = updatedType.declarationSourceEnd;
    }
    return allocation;
View Full Code Here

    superInterfacesLength = superInterfaces.length;
    interfaceNames = new char[superInterfacesLength][];
  } else {
    if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
      // see PR 3442
      QualifiedAllocationExpression alloc = typeDeclaration.allocation;
      if (alloc != null && alloc.type != null) {
        superInterfaces = new TypeReference[] { alloc.type};
        superInterfacesLength = 1;
        interfaceNames = new char[1][];
      }
View Full Code Here

 
  this.sourceEnds = null;
}
private int sourceEnd(TypeDeclaration typeDeclaration) {
  if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
    QualifiedAllocationExpression allocation = typeDeclaration.allocation;
    if (allocation.enumConstant != null) // case of enum constant body
      return allocation.enumConstant.sourceEnd;
    return allocation.type.sourceEnd;
  } else {
    return typeDeclaration.sourceEnd;
View Full Code Here

    superInterfacesLength = superInterfaces.length;
    interfaceNames = new char[superInterfacesLength][];
  } else {
    if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
      // see PR 3442
      QualifiedAllocationExpression alloc = typeDeclaration.allocation;
      if (alloc != null && alloc.type != null) {
        superInterfaces = new TypeReference[] { alloc.type};
        superInterfacesLength = 1;
        interfaceNames = new char[1][];
      }
View Full Code Here

  this.sourceEnds = null;
}
private int sourceEnd(TypeDeclaration typeDeclaration) {
  if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
    QualifiedAllocationExpression allocation = typeDeclaration.allocation;
    if (allocation.enumConstant != null) // case of enum constant body
      return allocation.enumConstant.sourceEnd;
    return allocation.type.sourceEnd;
  } else {
    return typeDeclaration.sourceEnd;
View Full Code Here

    superInterfacesLength = superInterfaces.length;
    interfaceNames = new char[superInterfacesLength][];
  } else {
    if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
      // see PR 3442
      QualifiedAllocationExpression alloc = typeDeclaration.allocation;
      if (alloc != null && alloc.type != null) {
        superInterfaces = new TypeReference[] { alloc.type};
        superInterfacesLength = 1;
        interfaceNames = new char[1][];
      }
View Full Code Here

  this.sourceEnds = null;
}
private int sourceEnd(TypeDeclaration typeDeclaration) {
  if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
    QualifiedAllocationExpression allocation = typeDeclaration.allocation;
    if (allocation.enumConstant != null) // case of enum constant body
      return allocation.enumConstant.sourceEnd;
    return allocation.type.sourceEnd;
  } else {
    return typeDeclaration.sourceEnd;
View Full Code Here

  List missingTypes = constructor.collectMissingTypes(null);
  TypeBinding missingType = (TypeBinding) missingTypes.get(0);
  int start = location.sourceStart;
  int end = location.sourceEnd;
  if (location instanceof QualifiedAllocationExpression) {
    QualifiedAllocationExpression qualifiedAllocation = (QualifiedAllocationExpression) location;
    if (qualifiedAllocation.anonymousType != null) {
      start = qualifiedAllocation.anonymousType.sourceStart;
      end = qualifiedAllocation.anonymousType.sourceEnd;
    }
  }
View Full Code Here

  }

  TypeDeclaration updatedType = updatedTypeDeclaration(depth + 1, knownTypes);
  if (updatedType != null && (updatedType.bits & ASTNode.IsAnonymousType) != 0){
    /* in presence of an anonymous type, we want the full allocation expression */
    QualifiedAllocationExpression allocation = updatedType.allocation;

    if (allocation.statementEnd == -1) {
      allocation.statementEnd = updatedType.declarationSourceEnd;
    }
    return allocation;
View Full Code Here

TOP

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

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.