public class LightPsiClassBuilder extends LightPsiClassBase implements OriginInfoAwareElement
Iconable.IconFlags, Iconable.LastComputedIconmyManagerFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYICON_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, toStringaccept, 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, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindMethodsByName, getClassKind, getInterfaceTypes, getRecordComponents, getRecordHeader, getSuperClassType, isRecordgetIdentifyingElementgetPresentationcanNavigate, canNavigateToSource, navigategetAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifieraccept, 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, textToCharArraygetUserData, putUserDatagetNavigationElementisWritablepublic LightPsiClassBuilder(PsiElement context, java.lang.String name)
public java.lang.String getOriginInfo()
getOriginInfo in interface OriginInfoAwareElementpublic LightModifierList getModifierList()
PsiModifierListOwnergetModifierList in interface PsiModifierListOwnergetModifierList in class LightPsiClassBasepublic LightReferenceListBuilder getExtendsList()
PsiClassgetExtendsList in interface PsiClasspublic LightReferenceListBuilder getImplementsList()
PsiClassgetImplementsList in interface PsiClasspublic PsiField [] getFields()
PsiClasspublic PsiMethod [] getMethods()
PsiClassgetMethods in interface JvmClassgetMethods in interface PsiClassClass.getDeclaredMethods(),
Class.getDeclaredConstructors()public PsiClass [] getInnerClasses()
PsiClassgetInnerClasses in interface JvmClassgetInnerClasses in interface PsiClassClass.getDeclaredClasses()public PsiClassInitializer [] getInitializers()
PsiClassgetInitializers in interface PsiClasspublic PsiElement getScope()
PsiClasspublic PsiClass getContainingClass()
PsiClassgetContainingClass in interface JvmMembergetContainingClass in interface PsiClassgetContainingClass in interface PsiJvmMembergetContainingClass in interface PsiMemberMember.getDeclaringClass()public LightTypeParameterListBuilder getTypeParameterList()
PsiTypeParameterListOwnergetTypeParameterList in interface PsiTypeParameterListOwnerpublic boolean isEquivalentTo(PsiElement another)
PsiElementPsiManager.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 PsiElementisEquivalentTo in class PsiElementBasepublic LightPsiClassBuilder setOriginInfo(java.lang.String originInfo)
public LightPsiClassBuilder setScope(PsiElement scope)
public LightPsiClassBuilder setContainingClass(PsiClass containingClass)
public LightPsiClassBuilder addMethod(PsiMethod method)