public interface PsiLambdaExpression extends PsiFunctionalExpression, PsiParameterListOwner
Iconable.IconFlags, Iconable.LastComputedIconEMPTY_ARRAYARRAY_FACTORY, EXPRESSION_TO_TYPEICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_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, isAcceptablegetTypeaccept, 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, toStringgetUserData, putUserDatagetName, getPresentationcanNavigate, canNavigateToSource, navigatePsiParameterList getParameterList()
getParameterList in interface PsiParameterListOwnerPsiElement getBody()
PsiCodeBlock, PsiExpression,
or null if the expression is incomplete.getBody in interface PsiParameterListOwnerboolean isVoidCompatible()
boolean isValueCompatible()
boolean hasFormalParameterTypes()
boolean isPotentiallyCompatible(PsiType left)
isPotentiallyCompatible in interface PsiFunctionalExpression