List of usage examples for org.eclipse.jdt.core.search IJavaSearchConstants INSTANCEOF_TYPE_REFERENCE
int INSTANCEOF_TYPE_REFERENCE
To view the source code for org.eclipse.jdt.core.search IJavaSearchConstants INSTANCEOF_TYPE_REFERENCE.
Click Source Link
instanceof expression. From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.MatchLocatorParser.java
License:Open Source License
protected void consumeInstanceOfExpression() { super.consumeInstanceOfExpression(); if ((this.patternFineGrain & IJavaSearchConstants.INSTANCEOF_TYPE_REFERENCE) != 0) { InstanceOfExpression expression = (InstanceOfExpression) this.expressionStack[this.expressionPtr]; this.patternLocator.match(expression.type, this.nodeSet); }/* ww w. jav a2 s .co m*/ }
From source file:com.codenvy.ide.ext.java.server.internal.core.search.matching.MatchLocatorParser.java
License:Open Source License
protected void consumeInstanceOfExpressionWithName() { super.consumeInstanceOfExpressionWithName(); if ((this.patternFineGrain & IJavaSearchConstants.INSTANCEOF_TYPE_REFERENCE) != 0) { InstanceOfExpression expression = (InstanceOfExpression) this.expressionStack[this.expressionPtr]; this.patternLocator.match(expression.type, this.nodeSet); }/*from w ww. j a v a 2 s . c o m*/ }
From source file:io.sarl.lang.ui.contentassist.SARLProposalProvider.java
License:Apache License
/** Complete for obtaining SARL capacities if the proposals are enabled. * * @param allowCapacityType is <code>true</code> for enabling the {@link Capacity} type to be in the proposals. * @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. * @param context the completion context. * @param acceptor the proposal acceptor. * @see #isSarlProposalEnabled()//from w w w. j a va 2s .c om */ protected void completeSarlCapacities(boolean allowCapacityType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Capacity.class, allowCapacityType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, getQualifiedNameValueConverter(), isExtensionFilter ? createExtensionFilter(context, IJavaSearchConstants.INSTANCEOF_TYPE_REFERENCE) : createVisibilityFilter(context, IJavaSearchConstants.INTERFACE), acceptor); } }