org.aspectj.org.eclipse.jdt.internal.compiler.util
Class Sorting

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.util.Sorting

public class Sorting
extends java.lang.Object

Sorting utilities. Originally developed for the Object Teams project.


Constructor Summary
Sorting()
           
 
Method Summary
static MethodBinding[] abstractFirst(MethodBinding[] methods, int length)
           
static MethodBinding[] concreteFirst(MethodBinding[] methods, int length)
           
static void sortInferenceVariables(InferenceVariable[] variables)
          Sort inference variables by rank.
static ReferenceBinding[] sortTypes(ReferenceBinding[] types)
          Topological sort for types Guarantee: supertypes come before subtypes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorting

public Sorting()
Method Detail

sortTypes

public static ReferenceBinding[] sortTypes(ReferenceBinding[] types)
Topological sort for types Guarantee: supertypes come before subtypes.


concreteFirst

public static MethodBinding[] concreteFirst(MethodBinding[] methods,
                                            int length)

abstractFirst

public static MethodBinding[] abstractFirst(MethodBinding[] methods,
                                            int length)

sortInferenceVariables

public static void sortInferenceVariables(InferenceVariable[] variables)
Sort inference variables by rank.