|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PsiClass
Represents a Java class or interface.
PsiJavaFile.getClasses()| Field Summary | |
|---|---|
static PsiClass[] |
EMPTY_ARRAY
The empty array of PSI classes which can be reused to avoid unnecessary allocations. |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Method Summary | |
|---|---|
PsiField |
findFieldByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the field with the specified name. |
PsiClass |
findInnerClassByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the inner class with the specified name. |
PsiMethod |
findMethodBySignature(PsiMethod patternMethod,
boolean checkBases)
Searches the class (and optionally its superclasses) for the method with the signature matching the signature of the specified method. |
java.util.List<Pair<PsiMethod,PsiSubstitutor>> |
findMethodsAndTheirSubstitutorsByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the specified name and returns the methods along with their substitutors. |
PsiMethod[] |
findMethodsByName(java.lang.String name,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the specified name. |
PsiMethod[] |
findMethodsBySignature(PsiMethod patternMethod,
boolean checkBases)
Searches the class (and optionally its superclasses) for the methods with the signature matching the signature of the specified method. |
PsiField[] |
getAllFields()
Returns the list of fields in the class and all its superclasses. |
PsiClass[] |
getAllInnerClasses()
Returns the list of inner classes for the class and all its superclasses.. |
PsiMethod[] |
getAllMethods()
Returns the list of methods in the class and all its superclasses. |
java.util.List<Pair<PsiMethod,PsiSubstitutor>> |
getAllMethodsAndTheirSubstitutors()
Returns the list of methods in the class and all its superclasses, along with their substitutors. |
PsiMethod[] |
getConstructors()
Returns the list of constructors for the class. |
PsiClass |
getContainingClass()
For an inner class, returns its containing class. |
PsiReferenceList |
getExtendsList()
Returns the list of classes that this class or interface extends. |
PsiClassType[] |
getExtendsListTypes()
Returns the list of class types for the classes that this class or interface extends. |
PsiField[] |
getFields()
Returns the list of fields in the class. |
PsiReferenceList |
getImplementsList()
Returns the list of interfaces that this class implements. |
PsiClassType[] |
getImplementsListTypes()
Returns the list of class types for the interfaces that this class implements. |
PsiClassInitializer[] |
getInitializers()
Returns the list of class initializers for the class. |
PsiClass[] |
getInnerClasses()
Returns the list of inner classes for the class. |
PsiClass[] |
getInterfaces()
Returns the list of interfaces implemented by the class, or extended by the interface. |
PsiJavaToken |
getLBrace()
Returns the token representing the opening curly brace of the class. |
PsiMethod[] |
getMethods()
Returns the list of methods in the class. |
PsiIdentifier |
getNameIdentifier()
Returns the name identifier of the class. |
PomMemberOwner |
getPom()
Returns the POM representation of the class. |
java.lang.String |
getQualifiedName()
Returns the fully qualified name of the class. |
PsiJavaToken |
getRBrace()
Returns the token representing the closing curly brace of the class. |
PsiElement |
getScope()
Returns the PSI member in which the class has been declared (for example, the method containing the anonymous inner class, or the file containing a regular class, or the class owning a type parameter). |
PsiClass |
getSuperClass()
Returns the base class of this class. |
PsiClass[] |
getSupers()
Returns the list of classes and interfaces extended or implemented by the class. |
PsiClassType[] |
getSuperTypes()
Returns the list of class types for the classes and interfaces extended or implemented by the class. |
boolean |
isAnnotationType()
Checks if the class is an annotation type. |
boolean |
isEnum()
Checks if the class is an enumeration. |
boolean |
isInheritor(PsiClass baseClass,
boolean checkDeep)
Checks if this class is an inheritor of the specified base class. |
boolean |
isInterface()
Checks if the class is an interface. |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Methods inherited from interface com.intellij.psi.PsiNamedElement |
|---|
getName, setName |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
getModifierList, hasModifierProperty |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Methods inherited from interface com.intellij.psi.PsiDocCommentOwner |
|---|
getDocComment, isDeprecated |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
getModifierList, hasModifierProperty |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Methods inherited from interface com.intellij.navigation.NavigationItem |
|---|
getFileStatus, getName, getPresentation |
| Methods inherited from interface com.intellij.pom.Navigatable |
|---|
canNavigate, canNavigateToSource, navigate |
| Methods inherited from interface com.intellij.psi.meta.PsiMetaOwner |
|---|
getMetaData, isMetaEnough |
| Methods inherited from interface com.intellij.psi.PsiTypeParameterListOwner |
|---|
getTypeParameterList, getTypeParameters, hasTypeParameters |
| Methods inherited from interface com.intellij.psi.PsiModifierListOwner |
|---|
getModifierList, hasModifierProperty |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Methods inherited from interface com.intellij.navigation.NavigationItem |
|---|
getFileStatus, getName, getPresentation |
| Methods inherited from interface com.intellij.pom.Navigatable |
|---|
canNavigate, canNavigateToSource, navigate |
| Field Detail |
|---|
@NotNull static final PsiClass[] EMPTY_ARRAY
| Method Detail |
|---|
@Nullable java.lang.String getQualifiedName()
boolean isInterface()
boolean isAnnotationType()
boolean isEnum()
@Nullable PsiReferenceList getExtendsList()
@Nullable PsiReferenceList getImplementsList()
@NotNull PsiClassType[] getExtendsListTypes()
@NotNull PsiClassType[] getImplementsListTypes()
@Nullable PsiClass getSuperClass()
PsiClass[] getInterfaces()
@NotNull PsiClass[] getSupers()
@NotNull PsiClassType[] getSuperTypes()
@NotNull PsiField[] getFields()
@NotNull PsiMethod[] getMethods()
@NotNull PsiMethod[] getConstructors()
@NotNull PsiClass[] getInnerClasses()
@NotNull PsiClassInitializer[] getInitializers()
@NotNull PsiField[] getAllFields()
@NotNull PsiMethod[] getAllMethods()
@NotNull PsiClass[] getAllInnerClasses()
@Nullable
PsiField findFieldByName(java.lang.String name,
boolean checkBases)
name - the name of the field to find.checkBases - if true, the field is also searched in the base classes of the class.
@Nullable
PsiMethod findMethodBySignature(PsiMethod patternMethod,
boolean checkBases)
patternMethod - the method used as a pattern for the search.checkBases - if true, the method is also searched in the base classes of the class.
@NotNull
PsiMethod[] findMethodsBySignature(PsiMethod patternMethod,
boolean checkBases)
patternMethod - the method used as a pattern for the search.checkBases - if true, the method is also searched in the base classes of the class.
@NotNull
PsiMethod[] findMethodsByName(java.lang.String name,
boolean checkBases)
name - the name of the methods to find.checkBases - if true, the methods are also searched in the base classes of the class.
@NotNull
java.util.List<Pair<PsiMethod,PsiSubstitutor>> findMethodsAndTheirSubstitutorsByName(java.lang.String name,
boolean checkBases)
name - the name of the methods to find.checkBases - if true, the methods are also searched in the base classes of the class.
@NotNull java.util.List<Pair<PsiMethod,PsiSubstitutor>> getAllMethodsAndTheirSubstitutors()
@Nullable
PsiClass findInnerClassByName(java.lang.String name,
boolean checkBases)
name - the name of the inner class to find.checkBases - if true, the inner class is also searched in the base classes of the class.
@Nullable PsiJavaToken getLBrace()
@Nullable PsiJavaToken getRBrace()
@Nullable PsiIdentifier getNameIdentifier()
PsiElement getScope()
boolean isInheritor(PsiClass baseClass,
boolean checkDeep)
baseClass - the base class to check the inheritance.checkDeep - if false, only direct inheritance is checked; if true, the base class is
searched in the entire inheritance chain
@Nullable PomMemberOwner getPom()
POM representation of the class.
@Nullable PsiClass getContainingClass()
getContainingClass in interface PsiMember
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||