Example usage for org.eclipse.jdt.internal.compiler.lookup Scope EQUAL_OR_MORE_SPECIFIC

List of usage examples for org.eclipse.jdt.internal.compiler.lookup Scope EQUAL_OR_MORE_SPECIFIC

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup Scope EQUAL_OR_MORE_SPECIFIC.

Prototype

int EQUAL_OR_MORE_SPECIFIC

To view the source code for org.eclipse.jdt.internal.compiler.lookup Scope EQUAL_OR_MORE_SPECIFIC.

Click Source Link

Usage

From source file:org.eclipse.jdt.internal.compiler.lookup.Scope.java

License:Open Source License

public static int compareTypes(TypeBinding left, TypeBinding right) {
    if (left.isCompatibleWith(right))
        return Scope.EQUAL_OR_MORE_SPECIFIC;
    if (right.isCompatibleWith(left))
        return Scope.MORE_GENERIC;
    return Scope.NOT_RELATED;
}