Package org.aspectj.org.eclipse.jdt.internal.compiler.env

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericType


  this.typeBindings[this.typeIndex] = typeBinding;
}
private void remember(IType type, ReferenceBinding typeBinding) {
  if (((CompilationUnit)type.getCompilationUnit()).isOpen()) {
    try {
      IGenericType genericType = (IGenericType)((JavaElement)type).getElementInfo();
      remember(genericType, typeBinding);
    } catch (JavaModelException e) {
      // cannot happen since element is open
      return;
    }
View Full Code Here


    if (typeBinding.id == TypeIds.T_JavaLangObject) {
      objectIndex = current;
      continue;
    }

    IGenericType suppliedType = this.typeModels[current];

    if (!subOrSuperOfFocus(typeBinding)) {
      continue; // ignore types outside of hierarchy
    }

    IType superclass;
    if (typeBinding.isInterface()){ // do not connect interfaces to Object
      superclass = null;
    } else {
      superclass = findSuperClass(suppliedType, typeBinding);
    }
    IType[] superinterfaces = findSuperInterfaces(suppliedType, typeBinding);
   
    this.builder.connect(suppliedType, this.builder.getHandle(suppliedType, typeBinding), superclass, superinterfaces);
  }
  // add java.lang.Object only if the super class is not missing
  if (!this.hasMissingSuperClass && objectIndex > -1) {
    IGenericType objectType = this.typeModels[objectIndex];
    this.builder.connect(objectType, this.builder.getHandle(objectType, this.typeBindings[objectIndex]), null, null);
  }
}
View Full Code Here

      BinaryTypeBinding binaryTypeBinding = this.lookupEnvironment.cacheBinaryType((IBinaryType) suppliedType, false/*don't need field and method (bug 125067)*/, null /*no access restriction*/);
      remember(suppliedType, binaryTypeBinding);
      // We still need to add superclasses and superinterfaces bindings (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53095)
      int startIndex = this.typeIndex;
      for (int i = startIndex; i <= this.typeIndex; i++) {
        IGenericType igType = this.typeModels[i];
        if (igType != null && igType.isBinaryType()) {
          // fault in its hierarchy...
          try {
            ReferenceBinding typeBinding = this.typeBindings[i];
            typeBinding.superclass();
            typeBinding.superInterfaces();
View Full Code Here

        }
      }
    }
   
    for (int i = 0; i <= this.typeIndex; i++) {
      IGenericType suppliedType = this.typeModels[i];
      if (suppliedType != null && suppliedType.isBinaryType()) {
        // fault in its hierarchy...
        try {
          ReferenceBinding typeBinding = this.typeBindings[i];
          typeBinding.superclass();
          typeBinding.superInterfaces();
View Full Code Here

  protected void buildSupertypes() {
    IType focusType = this.getType();
    if (focusType == null)
      return;
    // get generic type from focus type
    IGenericType type;
    try {
      type = (IGenericType) ((JavaElement) focusType).getElementInfo();
    } catch (JavaModelException e) {
      // if the focus type is not present, or if cannot get workbench path
      // we cannot create the hierarchy
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericType

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.