public class BeanPropertyElement extends FakePsiElement implements PsiMetaOwner, PsiPresentableMetaData
Iconable.IconFlags, Iconable.LastComputedIcon
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY
ARRAY_FACTORY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
BeanPropertyElement(PsiMethod method,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
PsiElement |
getDeclaration() |
javax.swing.Icon |
getIcon() |
javax.swing.Icon |
getIcon(boolean flags)
Returns the icon representing the object.
|
PsiManager |
getManager()
Returns the PSI manager for the project to which the PSI element belongs.
|
PsiMetaData |
getMetaData() |
PsiMethod |
getMethod() |
java.lang.String |
getName()
Returns the name of the element.
|
java.lang.String |
getName(PsiElement context) |
PsiElement |
getNavigationElement()
Returns the PSI element which should be used as a navigation target
when navigation to this PSI element is requested.
|
PsiElement |
getParent()
Returns the parent of the PSI element.
|
PsiType |
getPropertyType() |
TextRange |
getTextRange()
Returns the text range in the document occupied by the PSI element.
|
java.lang.String |
getTypeName() |
int |
hashCode() |
void |
init(PsiElement element) |
findElementAt, getChildren, getElementIcon, getFirstChild, getIcon, getLanguage, getLastChild, getLocationString, getNextSibling, getNode, getPresentableText, getPresentation, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, isPhysical, setName, textContains, textToCharArray
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, checkAdd, checkDelete, copy, delete, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContainingFile, getContext, getOriginalElement, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isValid, isWritable, navigate, notNullChild, processDeclarations, replace, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDependences, getDependencies
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findReferenceAt, getContainingFile, getContext, getCopyableUserData, getOriginalElement, getOwnReferences, getProject, getReference, getReferences, getResolveScope, getTextRangeInParent, getUseScope, isEquivalentTo, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textMatches, textMatches, toString
getUserData, putUserData
public BeanPropertyElement(PsiMethod method, java.lang.String name)
public PsiType getPropertyType()
public PsiMethod getMethod()
public PsiElement getNavigationElement()
PsiElement
this
or substitute a different element if this element
does not have an associated file and offset. (For example, if the source code
of a library is attached to a project, the navigation element for a compiled
library class is its source class.)getNavigationElement
in interface PsiElement
getNavigationElement
in class PsiElementBase
public PsiManager getManager()
PsiElement
getManager
in interface PsiElement
getManager
in class FakePsiElement
public PsiElement getDeclaration()
getDeclaration
in interface PsiMetaData
public java.lang.String getName(PsiElement context)
getName
in interface PsiMetaData
public java.lang.String getName()
PsiNamedElement
getName
in interface NavigationItem
getName
in interface PsiMetaData
getName
in interface PsiNamedElement
getName
in class PsiElementBase
public void init(PsiElement element)
init
in interface PsiMetaData
public javax.swing.Icon getIcon(boolean flags)
ItemPresentation
getIcon
in interface ItemPresentation
getIcon
in class FakePsiElement
flags
- Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason.public PsiElement getParent()
PsiElement
getParent
in interface PsiElement
public PsiMetaData getMetaData()
getMetaData
in interface PsiMetaOwner
public java.lang.String getTypeName()
getTypeName
in interface PsiPresentableMetaData
public javax.swing.Icon getIcon()
getIcon
in interface PsiPresentableMetaData
public TextRange getTextRange()
PsiElement
getTextRange
in interface PsiElement
getTextRange
in class FakePsiElement
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object