public interface PsiLambdaExpression extends PsiFunctionalExpression, PsiParameterListOwner
Iconable.IconFlags, Iconable.LastComputedIcon
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 |
---|---|
PsiElement |
getBody()
Returns PSI element representing lambda expression body:
PsiCodeBlock , PsiExpression ,
or null if the expression is incomplete. |
PsiParameterList |
getParameterList()
Returns this lambda expression's parameter list.
|
boolean |
hasFormalParameterTypes() |
boolean |
isPotentiallyCompatible(PsiType left)
A lambda expression (p15.27) is potentially compatible with a functional interface type (p9.8) if all of the following are true:
The arity of the target type's function type is the same as the arity of the lambda expression.
|
boolean |
isValueCompatible() |
boolean |
isVoidCompatible() |
getFunctionalInterfaceType, getGroundTargetType, isAcceptable, isAcceptable
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
PsiParameterList getParameterList()
getParameterList
in interface PsiParameterListOwner
PsiElement getBody()
PsiCodeBlock
, PsiExpression
,
or null if the expression is incomplete.getBody
in interface PsiParameterListOwner
boolean isVoidCompatible()
boolean isValueCompatible()
boolean hasFormalParameterTypes()
boolean isPotentiallyCompatible(PsiType left)
isPotentiallyCompatible
in interface PsiFunctionalExpression