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

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

Introduction

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

Prototype

int SUPERTYPE_REF_FLAVOR

To view the source code for org.eclipse.jdt.internal.core.search.matching PatternLocator SUPERTYPE_REF_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);
    }/*from   w ww. j  a  va2  s. c o 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 w  w .  j  a  v a2s .  c  o  m
    this.patternLocator.setFlavors(PatternLocator.NO_FLAVOR);
}