Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.superInterfaces()


  }
 
  @Override
  public List<? extends TypeMirror> getInterfaces() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    if (null == binding.superInterfaces() || binding.superInterfaces().length == 0) {
      return Collections.emptyList();
    }
    List<TypeMirror> interfaces = new ArrayList<TypeMirror>(binding.superInterfaces().length);
    for (ReferenceBinding interfaceBinding : binding.superInterfaces()) {
      TypeMirror interfaceType = _env.getFactory().newTypeMirror(interfaceBinding);
View Full Code Here


  public List<? extends TypeMirror> getInterfaces() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    if (null == binding.superInterfaces() || binding.superInterfaces().length == 0) {
      return Collections.emptyList();
    }
    List<TypeMirror> interfaces = new ArrayList<TypeMirror>(binding.superInterfaces().length);
    for (ReferenceBinding interfaceBinding : binding.superInterfaces()) {
      TypeMirror interfaceType = _env.getFactory().newTypeMirror(interfaceBinding);
      if (interfaceType.getKind() == TypeKind.ERROR) {
        if (this._env.getSourceVersion().compareTo(SourceVersion.RELEASE_6) > 0) {
          // for jdk 7 and above, add error types
View Full Code Here

    ReferenceBinding binding = (ReferenceBinding)_binding;
    if (null == binding.superInterfaces() || binding.superInterfaces().length == 0) {
      return Collections.emptyList();
    }
    List<TypeMirror> interfaces = new ArrayList<TypeMirror>(binding.superInterfaces().length);
    for (ReferenceBinding interfaceBinding : binding.superInterfaces()) {
      TypeMirror interfaceType = _env.getFactory().newTypeMirror(interfaceBinding);
      if (interfaceType.getKind() == TypeKind.ERROR) {
        if (this._env.getSourceVersion().compareTo(SourceVersion.RELEASE_6) > 0) {
          // for jdk 7 and above, add error types
          interfaces.add(interfaceType);
View Full Code Here

        return this.interfaces = NO_TYPE_BINDINGS;
    }
    ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
    ReferenceBinding[] internalInterfaces = null;
    try {
      internalInterfaces = referenceBinding.superInterfaces();
    } catch (RuntimeException e) {
      /* in case a method cannot be resolvable due to missing jars on the classpath
       * see https://bugs.eclipse.org/bugs/show_bug.cgi?id=57871
       * https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550
       * https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299
 
View Full Code Here

            final MethodBinding originalInherited = inheritedMethod.original();
            final MethodBinding originalOverride = this.method.original();
            if (!originalOverride.areParameterErasuresEqual(originalInherited) || TypeBinding.notEquals(originalOverride.returnType.erasure(), originalInherited.returnType.erasure()))
              add(originalInherited);
          }
          collectBridges(superInterface.superInterfaces());
        }
      }
      void add(MethodBinding inheritedMethod) {
        if (this.bridges == null) {
          this.bridges = new MethodBinding[] { inheritedMethod };
View Full Code Here

            final MethodBinding originalInherited = inheritedMethod.original();
            final MethodBinding originalOverride = this.method.original();
            if (!originalOverride.areParameterErasuresEqual(originalInherited) || TypeBinding.notEquals(originalOverride.returnType.erasure(), originalInherited.returnType.erasure()))
              add(originalInherited);
          }
          collectBridges(superInterface.superInterfaces());
        }
      }
      void add(MethodBinding inheritedMethod) {
        if (this.bridges == null) {
          this.bridges = new MethodBinding[] { inheritedMethod };
View Full Code Here

                break NEXT_METHOD;
              }
            }
            foundMethods.add(findMethod);
          }
          ReferenceBinding[] superInterfaces = currentClass.superInterfaces();
          if (superInterfaces != null) {
            work.addAll(Arrays.asList(superInterfaces));
          }
          ReferenceBinding superclass = currentClass.superclass();
          if (superclass != null) {
View Full Code Here

            if(methodBinding.areParametersEqual(methods[k]))
              return methods[k];
          }
        }

        if ((itsInterfaces = currentType.superInterfaces()) != Binding.NO_SUPERINTERFACES) {
          int itsLength = itsInterfaces.length;
          if (nextPosition + itsLength >= interfacesToVisit.length)
            System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[nextPosition + itsLength + 5], 0, nextPosition);
          nextInterface : for (int a = 0; a < itsLength; a++) {
            ReferenceBinding next = itsInterfaces[a];
View Full Code Here

    ReferenceBinding currentType = receiverType;
    ReferenceBinding[] interfacesToVisit = null;
    int nextPosition = 0;
    do {
      ReferenceBinding[] itsInterfaces = currentType.superInterfaces();
      if (notInJavadoc && itsInterfaces != Binding.NO_SUPERINTERFACES) {
        if (interfacesToVisit == null) {
          interfacesToVisit = itsInterfaces;
          nextPosition = interfacesToVisit.length;
        } else {
View Full Code Here

              onlyStaticFields,
              localsFound,
              fieldsFound);
        }

        ReferenceBinding[] itsInterfaces = anInterface.superInterfaces();
        if (itsInterfaces != Binding.NO_SUPERINTERFACES) {
          int itsLength = itsInterfaces.length;
          if (nextPosition + itsLength >= interfacesToVisit.length)
            System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[nextPosition + itsLength + 5], 0, nextPosition);
          nextInterface : for (int a = 0; a < itsLength; a++) {
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.