public class LightFieldBuilder extends LightVariableBuilder<LightFieldBuilder> implements PsiField
Iconable.IconFlags, Iconable.LastComputedIconmyManagerFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
LightFieldBuilder(PsiManager manager,
java.lang.String name,
PsiType type) |
LightFieldBuilder(java.lang.String name,
PsiType type,
PsiElement navigationElement) |
LightFieldBuilder(java.lang.String name,
java.lang.String type,
PsiElement navigationElement) |
| Modifier and Type | Method and Description |
|---|---|
PsiClass |
getContainingClass()
Returns the class containing the member.
|
PsiDocComment |
getDocComment()
Returns the JavaDoc comment for the element, or
null when the element has no JavaDoc comment. |
PsiExpression |
getInitializer()
Returns the initializer for the variable.
|
PsiElement |
getParent()
Returns the parent of the PSI element.
|
boolean |
isDeprecated()
Returns
true if the element is marked as deprecated via an annotation or a JavaDoc tag. |
boolean |
isEquivalentTo(PsiElement another)
This method shouldn't be called by clients directly, because there are no guarantees of it being symmetric.
|
LightFieldBuilder |
setContainingClass(PsiClass psiClass) |
LightFieldBuilder |
setDocComment(PsiDocComment docComment) |
void |
setInitializer(PsiExpression initializer)
Adds initializer to the field declaration or, if
initializer parameter is null,
removes the initializer from the field declaration. |
LightFieldBuilder |
setIsDeprecated(boolean isDeprecated) |
computeConstantValue, getElementIcon, getModifierList, getName, getNameIdentifier, getOriginInfo, getType, getTypeElement, hasInitializer, hasModifierProperty, isVisibilitySupported, normalizeDeclaration, setBaseIcon, setModifierList, setModifiers, setName, setOriginInfo, toStringaccept, add, addAfter, addBefore, checkAdd, checkDelete, copy, delete, findElementAt, getChildren, getContainingFile, getLanguage, getManager, getNavigationElement, getNextSibling, getNode, 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, processDeclarations, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getNameIdentifier, getTypegetAnnotation, getAnnotations, getSourceElement, hasAnnotation, hasModifiercomputeConstantValue, getTypeElement, hasInitializer, normalizeDeclaration, setNamegetIdentifyingElementgetNavigationElementisWritableaccept, 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, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatagetPresentationcanNavigate, canNavigateToSource, navigatepublic LightFieldBuilder(java.lang.String name,
java.lang.String type,
PsiElement navigationElement)
public LightFieldBuilder(java.lang.String name,
PsiType type,
PsiElement navigationElement)
public LightFieldBuilder(PsiManager manager, java.lang.String name, PsiType type)
public LightFieldBuilder setContainingClass(PsiClass psiClass)
public void setInitializer(PsiExpression initializer) throws IncorrectOperationException
PsiFieldinitializer parameter is null,
removes the initializer from the field declaration.setInitializer in interface PsiFieldsetInitializer in interface PsiVariableinitializer - the initializer to add.IncorrectOperationException - if the modifications fails for some reason.public PsiExpression getInitializer()
PsiVariablegetInitializer in interface PsiVariablegetInitializer in class LightVariableBuilder<LightFieldBuilder>PsiVariable.hasInitializer()public PsiDocComment getDocComment()
PsiJavaDocumentedElementnull when the element has no JavaDoc comment.getDocComment in interface PsiJavaDocumentedElementpublic LightFieldBuilder setDocComment(PsiDocComment docComment)
public boolean isDeprecated()
PsiDocCommentOwnertrue if the element is marked as deprecated via an annotation or a JavaDoc tag.isDeprecated in interface PsiDocCommentOwnerpublic LightFieldBuilder setIsDeprecated(boolean isDeprecated)
public PsiClass getContainingClass()
PsiMembergetContainingClass in interface JvmMembergetContainingClass in interface PsiJvmMembergetContainingClass in interface PsiMemberMember.getDeclaringClass()public PsiElement getParent()
PsiElementgetParent in interface PsiElementgetParent in class LightElementpublic 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 PsiElementBase