public class LightPsiClassBuilder extends LightPsiClassBase implements OriginInfoAwareElement
Iconable.IconFlags, Iconable.LastComputedIcon
myManager
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Constructor and Description |
---|
LightPsiClassBuilder(PsiElement context,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
LightPsiClassBuilder |
addMethod(PsiMethod method) |
PsiClass |
getContainingClass()
For an inner class, returns its containing class.
|
LightReferenceListBuilder |
getExtendsList()
Returns the list of classes that this class or interface extends.
|
PsiField [] |
getFields()
Returns the list of fields in the class.
|
LightReferenceListBuilder |
getImplementsList()
Returns the list of 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.
|
PsiMethod [] |
getMethods()
Returns the list of methods in the class.
|
LightModifierList |
getModifierList()
Returns the list of modifiers for the element.
|
java.lang.String |
getOriginInfo() |
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).
|
LightTypeParameterListBuilder |
getTypeParameterList()
Returns the type parameter list for the element.
|
boolean |
isEquivalentTo(PsiElement another)
This method shouldn't be called by clients directly, because there are no guarantees of it being symmetric.
|
LightPsiClassBuilder |
setContainingClass(PsiClass containingClass) |
LightPsiClassBuilder |
setOriginInfo(java.lang.String originInfo) |
LightPsiClassBuilder |
setScope(PsiElement scope) |
findFieldByName, findInnerClassByName, findMethodBySignature, findMethodsAndTheirSubstitutorsByName, findMethodsByName, findMethodsBySignature, getAllFields, getAllInnerClasses, getAllMethods, getAllMethodsAndTheirSubstitutors, getConstructors, getDocComment, getExtendsListTypes, getImplementsListTypes, getInterfaces, getLBrace, getName, getNameIdentifier, getQualifiedName, getRBrace, getSuperClass, getSupers, getSuperTypes, getTypeParameters, getVisibleSignatures, hasModifierProperty, hasTypeParameters, isAnnotationType, isDeprecated, isEnum, isInheritor, isInheritorDeep, isInterface, processDeclarations, setName, toString
accept, add, addAfter, addBefore, checkAdd, checkDelete, copy, delete, findElementAt, getChildren, getContainingFile, getLanguage, getManager, getNavigationElement, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isPhysical, isValid, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArray
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findMethodsByName, getClassKind, getInterfaceTypes, getRecordComponents, getRecordHeader, getSuperClassType, isRecord
getIdentifyingElement
getPresentation
canNavigate, canNavigateToSource, navigate
getAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifier
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isPhysical, isValid, isWritable, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
getUserData, putUserData
getNavigationElement
isWritable
public LightPsiClassBuilder(PsiElement context, java.lang.String name)
public java.lang.String getOriginInfo()
getOriginInfo
in interface OriginInfoAwareElement
public LightModifierList getModifierList()
PsiModifierListOwner
getModifierList
in interface PsiModifierListOwner
getModifierList
in class LightPsiClassBase
public LightReferenceListBuilder getExtendsList()
PsiClass
getExtendsList
in interface PsiClass
public LightReferenceListBuilder getImplementsList()
PsiClass
getImplementsList
in interface PsiClass
public PsiField [] getFields()
PsiClass
public PsiMethod [] getMethods()
PsiClass
getMethods
in interface JvmClass
getMethods
in interface PsiClass
Class.getDeclaredMethods()
,
Class.getDeclaredConstructors()
public PsiClass [] getInnerClasses()
PsiClass
getInnerClasses
in interface JvmClass
getInnerClasses
in interface PsiClass
Class.getDeclaredClasses()
public PsiClassInitializer [] getInitializers()
PsiClass
getInitializers
in interface PsiClass
public PsiElement getScope()
PsiClass
public PsiClass getContainingClass()
PsiClass
getContainingClass
in interface JvmMember
getContainingClass
in interface PsiClass
getContainingClass
in interface PsiJvmMember
getContainingClass
in interface PsiMember
Member.getDeclaringClass()
public LightTypeParameterListBuilder getTypeParameterList()
PsiTypeParameterListOwner
getTypeParameterList
in interface PsiTypeParameterListOwner
public boolean isEquivalentTo(PsiElement another)
PsiElement
PsiManager.areElementsEquivalent(PsiElement, PsiElement)
internally, which clients should invoke instead.
Implementations of this method should return true
if the parameter is resolve-equivalent to this
, i.e. it represents
the same entity from the language perspective. See also PsiManager.areElementsEquivalent(PsiElement, PsiElement)
documentation.isEquivalentTo
in interface PsiElement
isEquivalentTo
in class PsiElementBase
public LightPsiClassBuilder setOriginInfo(java.lang.String originInfo)
public LightPsiClassBuilder setScope(PsiElement scope)
public LightPsiClassBuilder setContainingClass(PsiClass containingClass)
public LightPsiClassBuilder addMethod(PsiMethod method)