Example usage for org.eclipse.jdt.core.search IJavaSearchConstants FIELD_DECLARATION_TYPE_REFERENCE

List of usage examples for org.eclipse.jdt.core.search IJavaSearchConstants FIELD_DECLARATION_TYPE_REFERENCE

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.search IJavaSearchConstants FIELD_DECLARATION_TYPE_REFERENCE.

Prototype

int FIELD_DECLARATION_TYPE_REFERENCE

To view the source code for org.eclipse.jdt.core.search IJavaSearchConstants FIELD_DECLARATION_TYPE_REFERENCE.

Click Source Link

Document

Return only type references used as the type of a field declaration.

Usage

From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.MatchLocatorParser.java

License:Open Source License

protected void consumeEnterVariable() {
    boolean isLocalDeclaration = this.nestedMethod[this.nestedType] != 0;
    super.consumeEnterVariable();
    if (isLocalDeclaration) {
        if ((this.patternFineGrain & IJavaSearchConstants.LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE) != 0) {
            LocalDeclaration localDeclaration = (LocalDeclaration) this.astStack[this.astPtr];
            this.patternLocator.match(localDeclaration.type, this.nodeSet);
        }/*from w ww .j a  va2s.com*/
    } else {
        if ((this.patternFineGrain & IJavaSearchConstants.FIELD_DECLARATION_TYPE_REFERENCE) != 0) {
            FieldDeclaration fieldDeclaration = (FieldDeclaration) this.astStack[this.astPtr];
            this.patternLocator.match(fieldDeclaration.type, this.nodeSet);
        }
    }
}