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

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

Introduction

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

Prototype

int CAST_TYPE_REFERENCE

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

Click Source Link

Document

Return only type references used in a cast expression.

Usage

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

License:Open Source License

protected void consumeCastExpressionLL1() {
    super.consumeCastExpressionLL1();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        this.patternLocator.match(castExpression.type, this.nodeSet);
    }// w  w  w  .j ava 2  s  .  co  m
}

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

License:Open Source License

protected void consumeCastExpressionWithGenericsArray() {
    super.consumeCastExpressionWithGenericsArray();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        this.patternLocator.match(castExpression.type, this.nodeSet);
    }/*  ww  w.j a v  a  2 s .  c om*/
}

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

License:Open Source License

protected void consumeCastExpressionWithNameArray() {
    super.consumeCastExpressionWithNameArray();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        this.patternLocator.match(castExpression.type, this.nodeSet);
    }/*from   w w  w  .  ja  va  2s .  co m*/
}

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

License:Open Source License

protected void consumeCastExpressionWithPrimitiveType() {
    super.consumeCastExpressionWithPrimitiveType();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        this.patternLocator.match(castExpression.type, this.nodeSet);
    }/*from w w w .  j ava  2 s.co  m*/
}

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

License:Open Source License

protected void consumeCastExpressionWithQualifiedGenericsArray() {
    super.consumeCastExpressionWithQualifiedGenericsArray();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        this.patternLocator.match(castExpression.type, this.nodeSet);
    }/* ww  w  .j  av  a2s.co  m*/
}

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

License:Open Source License

protected void consumeCastExpressionLL1WithBounds() {
    super.consumeCastExpressionLL1WithBounds();
    if ((this.patternFineGrain & IJavaSearchConstants.CAST_TYPE_REFERENCE) != 0) {
        CastExpression castExpression = (CastExpression) this.expressionStack[this.expressionPtr];
        TypeReference[] typeReferences = ((IntersectionCastTypeReference) castExpression.type).typeReferences;
        for (int i = 0, length = typeReferences.length; i < length; i++)
            this.patternLocator.match(typeReferences[i], this.nodeSet);
    }/*from  w w w  .j a  va 2 s.  c om*/
}