本文整理汇总了Java中org.eclipse.jdt.core.search.IJavaSearchConstants.QUALIFIED_REFERENCE属性的典型用法代码示例。如果您正苦于以下问题:Java IJavaSearchConstants.QUALIFIED_REFERENCE属性的具体用法?Java IJavaSearchConstants.QUALIFIED_REFERENCE怎么用?Java IJavaSearchConstants.QUALIFIED_REFERENCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jdt.core.search.IJavaSearchConstants
的用法示例。
在下文中一共展示了IJavaSearchConstants.QUALIFIED_REFERENCE属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: consumeMethodInvocationName
protected void consumeMethodInvocationName() {
super.consumeMethodInvocationName();
MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
if (this.patternFineGrain == 0) {
this.patternLocator.match(messageSend, this.nodeSet);
} else {
if (messageSend.receiver.isThis()) {
if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
this.patternLocator.match(messageSend, this.nodeSet);
}
} else {
if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
this.patternLocator.match(messageSend, this.nodeSet);
}
}
}
}
示例2: consumeMethodInvocationNameWithTypeArguments
protected void consumeMethodInvocationNameWithTypeArguments() {
super.consumeMethodInvocationNameWithTypeArguments();
MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
if (this.patternFineGrain == 0) {
this.patternLocator.match(messageSend, this.nodeSet);
} else {
if (messageSend.receiver.isThis()) {
if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
this.patternLocator.match(messageSend, this.nodeSet);
}
} else {
if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
this.patternLocator.match(messageSend, this.nodeSet);
}
}
}
}
示例3: consumeReferenceExpression
@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);
}
} 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);
}
}
}
示例4: getUnspecifiedReferenceOptimized
protected NameReference getUnspecifiedReferenceOptimized() {
NameReference nameRef = super.getUnspecifiedReferenceOptimized();
if (this.patternFineGrain == 0) {
this.patternLocator.match(nameRef, this.nodeSet); // NB: Don't check container since unspecified reference can happen anywhere
} else {
boolean flagQualifiedRef = (this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0;
boolean flagImplicitThis = (this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0;
if (flagQualifiedRef && flagImplicitThis) {
this.patternLocator.match(nameRef, this.nodeSet);
} else if (flagQualifiedRef) {
if (nameRef instanceof QualifiedNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
} else if (flagImplicitThis) {
if (nameRef instanceof SingleNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
}
}
return nameRef;
}
示例5: getUnspecifiedReference
protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
NameReference nameRef = super.getUnspecifiedReference(rejectTypeAnnotations);
if (this.patternFineGrain == 0) {
this.patternLocator.match(nameRef, this.nodeSet); // NB: Don't check container since unspecified reference can happen anywhere
} else if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
if (nameRef instanceof QualifiedNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
} else if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
if (nameRef instanceof SingleNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
}
return nameRef;
}
示例6: getUnspecifiedReference
protected NameReference getUnspecifiedReference() {
NameReference nameRef = super.getUnspecifiedReference();
if (this.patternFineGrain == 0) {
this.patternLocator.match(nameRef, this.nodeSet); // NB: Don't check container since unspecified reference can happen anywhere
} else if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
if (nameRef instanceof QualifiedNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
} else if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
if (nameRef instanceof SingleNameReference) {
this.patternLocator.match(nameRef, this.nodeSet);
}
}
return nameRef;
}
示例7: getFineGrainFlagString
/**
* @param fineGrain
*/
public static String getFineGrainFlagString(final int fineGrain) {
if (fineGrain == 0) {
return "none"; //$NON-NLS-1$
}
StringBuffer buffer = new StringBuffer();
for (int i=1; i<=32; i++) {
int bit = fineGrain & (1<<(i-1));
if (bit != 0 && buffer.length()>0) buffer.append(" | "); //$NON-NLS-1$
switch (bit) {
case IJavaSearchConstants.FIELD_DECLARATION_TYPE_REFERENCE:
buffer.append("FIELD_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE:
buffer.append("LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.PARAMETER_DECLARATION_TYPE_REFERENCE:
buffer.append("PARAMETER_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.SUPERTYPE_TYPE_REFERENCE:
buffer.append("SUPERTYPE_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.THROWS_CLAUSE_TYPE_REFERENCE:
buffer.append("THROWS_CLAUSE_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CAST_TYPE_REFERENCE:
buffer.append("CAST_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CATCH_TYPE_REFERENCE:
buffer.append("CATCH_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CLASS_INSTANCE_CREATION_TYPE_REFERENCE:
buffer.append("CLASS_INSTANCE_CREATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.RETURN_TYPE_REFERENCE:
buffer.append("RETURN_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.IMPORT_DECLARATION_TYPE_REFERENCE:
buffer.append("IMPORT_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE:
buffer.append("ANNOTATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.TYPE_ARGUMENT_TYPE_REFERENCE:
buffer.append("TYPE_ARGUMENT_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.TYPE_VARIABLE_BOUND_TYPE_REFERENCE:
buffer.append("TYPE_VARIABLE_BOUND_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.WILDCARD_BOUND_TYPE_REFERENCE:
buffer.append("WILDCARD_BOUND_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.SUPER_REFERENCE:
buffer.append("SUPER_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.QUALIFIED_REFERENCE:
buffer.append("QUALIFIED_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.THIS_REFERENCE:
buffer.append("THIS_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.IMPLICIT_THIS_REFERENCE:
buffer.append("IMPLICIT_THIS_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION:
buffer.append("METHOD_REFERENCE_EXPRESSION"); //$NON-NLS-1$
break;
}
}
return buffer.toString();
}
示例8: getFineGrainFlagString
/**
* @param fineGrain
*/
public static String getFineGrainFlagString(final int fineGrain) {
if (fineGrain == 0) {
return "none"; //$NON-NLS-1$
}
StringBuffer buffer = new StringBuffer();
for (int i=1; i<=32; i++) {
int bit = fineGrain & (1<<(i-1));
if (bit != 0 && buffer.length()>0) buffer.append(" | "); //$NON-NLS-1$
switch (bit) {
case IJavaSearchConstants.FIELD_DECLARATION_TYPE_REFERENCE:
buffer.append("FIELD_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE:
buffer.append("LOCAL_VARIABLE_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.PARAMETER_DECLARATION_TYPE_REFERENCE:
buffer.append("PARAMETER_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.SUPERTYPE_TYPE_REFERENCE:
buffer.append("SUPERTYPE_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.THROWS_CLAUSE_TYPE_REFERENCE:
buffer.append("THROWS_CLAUSE_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CAST_TYPE_REFERENCE:
buffer.append("CAST_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CATCH_TYPE_REFERENCE:
buffer.append("CATCH_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.CLASS_INSTANCE_CREATION_TYPE_REFERENCE:
buffer.append("CLASS_INSTANCE_CREATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.RETURN_TYPE_REFERENCE:
buffer.append("RETURN_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.IMPORT_DECLARATION_TYPE_REFERENCE:
buffer.append("IMPORT_DECLARATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE:
buffer.append("ANNOTATION_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.TYPE_ARGUMENT_TYPE_REFERENCE:
buffer.append("TYPE_ARGUMENT_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.TYPE_VARIABLE_BOUND_TYPE_REFERENCE:
buffer.append("TYPE_VARIABLE_BOUND_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.WILDCARD_BOUND_TYPE_REFERENCE:
buffer.append("WILDCARD_BOUND_TYPE_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.SUPER_REFERENCE:
buffer.append("SUPER_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.QUALIFIED_REFERENCE:
buffer.append("QUALIFIED_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.THIS_REFERENCE:
buffer.append("THIS_REFERENCE"); //$NON-NLS-1$
break;
case IJavaSearchConstants.IMPLICIT_THIS_REFERENCE:
buffer.append("IMPLICIT_THIS_REFERENCE"); //$NON-NLS-1$
break;
}
}
return buffer.toString();
}