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

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


  int lastPosition = -1;
  FieldBinding visibleField = null;
  boolean keepLooking = true;
  boolean notVisible = false; // we could hold onto the not visible field for extra error reporting
  while (keepLooking) {
    ReferenceBinding[] itsInterfaces = currentType.superInterfaces();
    if (itsInterfaces != Binding.NO_SUPERINTERFACES) {
      if (interfacesToVisit == null)
        interfacesToVisit = new ReferenceBinding[5][];
      if (++lastPosition == interfacesToVisit.length)
        System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition);
View Full Code Here


            } else {
              ambiguous = new ProblemFieldBinding(visibleField, visibleField.declaringClass, fieldName, ProblemReasons.Ambiguous);
              break done;
            }
          } else {
            ReferenceBinding[] itsInterfaces = anInterface.superInterfaces();
            if (itsInterfaces != Binding.NO_SUPERINTERFACES) {
              if (++lastPosition == interfacesToVisit.length)
                System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition);
              interfacesToVisit[lastPosition] = itsInterfaces;
            }
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

              invocationScope,
              onlyStaticMethods,
              methodsFound);
        }

        itsInterfaces = currentType.superInterfaces();
        if (itsInterfaces != null && 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

          (currentType.isAbstract() ||
              currentType.isTypeVariable() ||
              currentType.isIntersectionType() ||
              currentType.isEnum())){

        ReferenceBinding[] superInterfaces = currentType.superInterfaces();
        if (superInterfaces != null && currentType.isIntersectionType()) {
          for (int i = 0; i < superInterfaces.length; i++) {
            superInterfaces[i] = (ReferenceBinding)superInterfaces[i].capture(invocationScope, invocationSite.sourceEnd());
          }
        }
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

  }
 
  @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()) {
      // JSR269 spec requires us to return unresolved superinterfaces, but javac has
View Full Code Here

  }
 
  @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()) {
      // JSR269 spec requires us to return unresolved superinterfaces, but javac has
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()) {
      // JSR269 spec requires us to return unresolved superinterfaces, but javac has
      // a bug in this regard; as of 5/08 we emulate javac, rather than follow the spec.
      // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=231521
      if (interfaceBinding.isValidBinding() &&
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.