public interface PsiFunctionalExpression extends PsiExpression, Iconable, NavigatablePsiElement
Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static PsiFunctionalExpression[] |
EMPTY_ARRAY |
ARRAY_FACTORY, EXPRESSION_TO_TYPE
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Modifier and Type | Method and Description |
---|---|
PsiType |
getFunctionalInterfaceType() |
PsiType |
getGroundTargetType(PsiType functionalInterfaceType)
JLS 9.9.
|
default boolean |
isAcceptable(PsiType left) |
boolean |
isAcceptable(PsiType left,
PsiMethod method) |
boolean |
isPotentiallyCompatible(PsiType left)
Potentially compatible check takes into account the presence and "shape" of functional interface target types.
|
getType
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, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
getName, getPresentation
canNavigate, canNavigateToSource, navigate
static final PsiFunctionalExpression[] EMPTY_ARRAY
PsiType getFunctionalInterfaceType()
default boolean isAcceptable(PsiType left)
boolean isAcceptable(PsiType left, PsiMethod method)
method
- boolean isPotentiallyCompatible(PsiType left)
PsiType getGroundTargetType(PsiType functionalInterfaceType)