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

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

Introduction

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

Prototype

int NO_FLAVOR

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

Click Source Link

Usage

From source file:org.eclipse.jdt.internal.core.search.matching.MatchLocatorParser.java

License:Open Source License

protected void consumeClassHeaderExtends() {
    this.patternLocator.setFlavors(PatternLocator.SUPERTYPE_REF_FLAVOR);
    super.consumeClassHeaderExtends();
    if ((this.patternFineGrain & IJavaSearchConstants.SUPERTYPE_TYPE_REFERENCE) != 0) {
        TypeDeclaration typeDeclaration = (TypeDeclaration) this.astStack[this.astPtr];
        this.patternLocator.match(typeDeclaration.superclass, this.nodeSet);
    }// ww w . j  av a2 s  .  co m
    this.patternLocator.setFlavors(PatternLocator.NO_FLAVOR);
}

From source file:org.eclipse.jdt.internal.core.search.matching.MatchLocatorParser.java

License:Open Source License

protected void consumeEnterAnonymousClassBody(boolean qualified) {
    this.patternLocator.setFlavors(PatternLocator.SUPERTYPE_REF_FLAVOR);
    super.consumeEnterAnonymousClassBody(qualified);
    this.patternLocator.setFlavors(PatternLocator.NO_FLAVOR);
}

From source file:org.eclipse.jdt.internal.core.search.matching.MatchLocatorParser.java

License:Open Source License

protected void consumeInterfaceType() {
    this.patternLocator.setFlavors(PatternLocator.SUPERTYPE_REF_FLAVOR);
    super.consumeInterfaceType();
    if ((this.patternFineGrain & IJavaSearchConstants.SUPERTYPE_TYPE_REFERENCE) != 0) {
        TypeReference typeReference = (TypeReference) this.astStack[this.astPtr];
        this.patternLocator.match(typeReference, this.nodeSet);
    }/*from  w ww .  j av a  2  s .  c o m*/
    this.patternLocator.setFlavors(PatternLocator.NO_FLAVOR);
}