org.aspectj.org.eclipse.jdt.internal.compiler.util
Class Sorting
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sorting
public Sorting()
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.