List of usage examples for org.eclipse.jdt.core.search IJavaSearchConstants METHOD_REFERENCE_EXPRESSION
int METHOD_REFERENCE_EXPRESSION
To view the source code for org.eclipse.jdt.core.search IJavaSearchConstants METHOD_REFERENCE_EXPRESSION.
Click Source Link
From source file:org.eclipse.che.jdt.internal.core.search.matching.MatchLocatorParser.java
License:Open Source License
@Override protected void consumeReferenceExpression(ReferenceExpression referenceExpression) { super.consumeReferenceExpression(referenceExpression); if (this.patternFineGrain == 0) { this.patternLocator.match(referenceExpression, this.nodeSet); } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) { this.patternLocator.match(referenceExpression, this.nodeSet); } else if (referenceExpression.lhs.isThis()) { if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) { this.patternLocator.match(referenceExpression, this.nodeSet); }// w w w . j a v a2 s . c o m } else if (referenceExpression.lhs.isSuper()) { if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) { this.patternLocator.match(referenceExpression, this.nodeSet); } } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) { if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) { this.patternLocator.match(referenceExpression, this.nodeSet); } } }