Example usage for org.eclipse.jdt.internal.core.search.matching PatternLocator IMPOSSIBLE_MATCH

List of usage examples for org.eclipse.jdt.internal.core.search.matching PatternLocator IMPOSSIBLE_MATCH

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.search.matching PatternLocator IMPOSSIBLE_MATCH.

Prototype

int IMPOSSIBLE_MATCH

To view the source code for org.eclipse.jdt.internal.core.search.matching PatternLocator IMPOSSIBLE_MATCH.

Click Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.search.matching.ReferenceToTeamPackagePattern.java

License:Open Source License

public int matches(ImportReference importRef) {
    // note: _roleName is not compared at this stage, deferred to handling by the ReferenceToTeamLocator
    if (matchesName(this.teamQualifiedName, CharOperation.concatWith(importRef.tokens, '.')))
        return PatternLocator.ACCURATE_MATCH;
    return PatternLocator.IMPOSSIBLE_MATCH;
}