public class RefJavaManagerImpl extends RefJavaManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVAX_SERVLET_SERVLET |
CLASS, FIELD, MANAGER, METHOD
Constructor and Description |
---|
RefJavaManagerImpl(RefManagerImpl manager) |
Modifier and Type | Method and Description |
---|---|
boolean |
belongsToScope(PsiElement psiElement) |
void |
cleanup() |
RefElement |
createRefElement(PsiElement psi) |
void |
export(RefEntity refEntity,
Element element) |
java.util.stream.Stream<? extends PsiElement> |
extractExternalFileImplicitReferences(PsiFile psiFile) |
PsiMethod |
getAppAgentmainPattern() |
PsiClass |
getApplet() |
java.lang.String |
getAppletQName() |
PsiMethod |
getAppMainPattern() |
PsiMethod |
getAppPremainPattern() |
RefPackage |
getDefaultPackage() |
PsiNamedElement |
getElementContainer(PsiElement psiElement)
The method finds problem container (ex: method, class, file) that used to be shown as inspection view tree node.
|
EntryPointsManager |
getEntryPointsManager() |
java.lang.String |
getGroupName(RefEntity entity) |
RefImplicitConstructor |
getImplicitConstructor(java.lang.String classFQName) |
RefPackage |
getPackage(java.lang.String packageName)
Creates (if necessary) and returns the reference graph node for the package
with the specified name.
|
RefParameter |
getParameterReference(UParameter param,
int index,
RefMethod refMethod)
Creates (if necessary) and returns the reference graph node for the specified PSI parameter.
|
RefEntity |
getReference(java.lang.String type,
java.lang.String fqName) |
RefEntity |
getRefinedElement(RefEntity ref) |
java.lang.String |
getServletQName() |
java.lang.String |
getType(RefEntity ref) |
void |
iterate(RefVisitor visitor) |
void |
markExternalReferencesProcessed(RefElement file) |
void |
onEntityInitialized(RefElement refElement,
PsiElement psiElement) |
void |
removeReference(RefElement refElement) |
boolean |
shouldProcessExternalFile(PsiFile file) |
void |
visitElement(PsiElement element) |
getID, getLanguage, getLanguages
public static final java.lang.String JAVAX_SERVLET_SERVLET
public RefJavaManagerImpl(RefManagerImpl manager)
public RefImplicitConstructor getImplicitConstructor(java.lang.String classFQName)
getImplicitConstructor
in class RefJavaManager
public RefPackage getPackage(java.lang.String packageName)
RefJavaManager
getPackage
in class RefJavaManager
packageName
- the name of the package for which the reference graph node is requested.public RefPackage getDefaultPackage()
getDefaultPackage
in class RefJavaManager
public PsiMethod getAppMainPattern()
getAppMainPattern
in class RefJavaManager
public PsiMethod getAppPremainPattern()
getAppPremainPattern
in class RefJavaManager
public PsiMethod getAppAgentmainPattern()
getAppAgentmainPattern
in class RefJavaManager
public PsiClass getApplet()
getApplet
in class RefJavaManager
public java.lang.String getAppletQName()
getAppletQName
in class RefJavaManager
public java.lang.String getServletQName()
getServletQName
in class RefJavaManager
public RefParameter getParameterReference(UParameter param, int index, RefMethod refMethod)
RefJavaManager
getParameterReference
in class RefJavaManager
param
- the parameter for which the reference graph node is requested.index
- the index of the parameter in its parameter list.public void iterate(RefVisitor visitor)
public void cleanup()
public void removeReference(RefElement refElement)
public RefElement createRefElement(PsiElement psi)
public PsiNamedElement getElementContainer(PsiElement psiElement)
RefManagerExtension
LocalInspectionTool.getProblemElement(PsiElement)
returns null or PsiFile instance for specific inspection tool.public RefEntity getReference(java.lang.String type, java.lang.String fqName)
public java.lang.String getType(RefEntity ref)
public void visitElement(PsiElement element)
public java.lang.String getGroupName(RefEntity entity)
public boolean belongsToScope(PsiElement psiElement)
public void export(RefEntity refEntity, Element element)
public void onEntityInitialized(RefElement refElement, PsiElement psiElement)
public boolean shouldProcessExternalFile(PsiFile file)
public java.util.stream.Stream<? extends PsiElement> extractExternalFileImplicitReferences(PsiFile psiFile)
public void markExternalReferencesProcessed(RefElement file)
public EntryPointsManager getEntryPointsManager()
getEntryPointsManager
in class RefJavaManager