com.intellij.psi
Interface PsiJavaReference

All Superinterfaces:
PsiPolyVariantReference, PsiReference
All Known Subinterfaces:
PsiImportStaticReferenceElement, PsiJavaCodeReferenceElement, PsiReferenceExpression

public interface PsiJavaReference
extends PsiPolyVariantReference

Represents a reference found in Java code.


Field Summary
 
Fields inherited from interface com.intellij.psi.PsiReference
EMPTY_ARRAY
 
Method Summary
 JavaResolveResult advancedResolve(boolean incompleteCode)
          Resolves the reference and returns the result as a JavaResolveResult instead of a plain PsiElement.
 JavaResolveResult[] multiResolve(boolean incompleteCode)
          Returns the results of resolving the reference.
 void processVariants(PsiScopeProcessor processor)
          Passes all variants to which the reference may resolve to the specified processor.
 
Methods inherited from interface com.intellij.psi.PsiReference
bindToElement, getCanonicalText, getElement, getRangeInElement, getVariants, handleElementRename, isReferenceTo, isSoft, resolve
 

Method Detail

processVariants

void processVariants(PsiScopeProcessor processor)
Passes all variants to which the reference may resolve to the specified processor.

Parameters:
processor - the processor accepting the variants.s

advancedResolve

@NotNull
JavaResolveResult advancedResolve(boolean incompleteCode)
Resolves the reference and returns the result as a JavaResolveResult instead of a plain PsiElement.

Parameters:
incompleteCode - if true, the code in the context of which the reference is being resolved is considered incomplete, and the method may return an invalid result.
Returns:
the result of the resolve.

multiResolve

@NotNull
JavaResolveResult[] multiResolve(boolean incompleteCode)
Description copied from interface: PsiPolyVariantReference
Returns the results of resolving the reference.

Specified by:
multiResolve in interface PsiPolyVariantReference
Parameters:
incompleteCode - if true, the code in the context of which the reference is being resolved is considered incomplete, and the method may return additional invalid results.
Returns:
the array of results for resolving the reference.