public class PsiLambdaExpressionImpl extends JavaStubPsiElement<FunctionalExpressionStub<PsiLambdaExpression>> implements PsiLambdaExpression
Iconable.IconFlags, Iconable.LastComputedIconCREATION_TRACE, ourTraceStubAstBindingFLAGS_LOCKED, ICON_PLACEHOLDEREMPTY_ARRAYARRAY_FACTORY, EXPRESSION_TO_TYPEICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
PsiLambdaExpressionImpl(ASTNode node) |
PsiLambdaExpressionImpl(FunctionalExpressionStub<PsiLambdaExpression> stub) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
PsiElement |
getBody()
Returns PSI element representing lambda expression body:
PsiCodeBlock, PsiExpression,
or null if the expression is incomplete. |
PsiType |
getFunctionalInterfaceType() |
PsiType |
getGroundTargetType(PsiType functionalInterfaceType)
JLS 9.9.
|
javax.swing.Icon |
getIcon(int flags) |
PsiParameterList |
getParameterList()
Returns this lambda expression's parameter list.
|
PsiType |
getType()
Returns the type of the expression.
|
boolean |
hasFormalParameterTypes() |
boolean |
isAcceptable(PsiType leftType,
PsiMethod method) |
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() |
boolean |
processDeclarations(PsiScopeProcessor processor,
ResolveState state,
PsiElement lastParent,
PsiElement place)
Passes the declarations contained in this PSI element and its children
for processing to the specified scope processor.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
acceptChildren, add, addAfter, addBefore, calcTreeElement, checkAdd, clone, cloneImpl, delete, deleteChildRange, getChildren, getLanguage, getTextOffset, replacegetContainingFile, getContext, getElementType, getGreenStub, getManager, getNode, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setSubstrateRefaddInternal, addRange, addRangeAfter, addRangeBefore, checkDelete, copy, deleteChildInternal, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByType, findNotNullChildByType, getCopyableUserData, getFirstChild, getLastChild, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextRange, putCopyableUserData, replaceChildInternal, subtreeChanged, textContains, textMatches, textToCharArraycanNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getName, getNavigationElement, getOriginalElement, getPresentation, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, textMatchesbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisAcceptableacceptChildren, 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, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArraygetUserData, putUserDatagetName, getPresentationcanNavigate, canNavigateToSource, navigategetElementType, getStubpublic PsiLambdaExpressionImpl(FunctionalExpressionStub<PsiLambdaExpression> stub)
public PsiLambdaExpressionImpl(ASTNode node)
public PsiParameterList getParameterList()
PsiLambdaExpressiongetParameterList in interface PsiLambdaExpressiongetParameterList in interface PsiParameterListOwnerpublic PsiElement getBody()
PsiLambdaExpressionPsiCodeBlock, PsiExpression,
or null if the expression is incomplete.getBody in interface PsiLambdaExpressiongetBody in interface PsiParameterListOwnerpublic PsiType getFunctionalInterfaceType()
getFunctionalInterfaceType in interface PsiFunctionalExpressionpublic boolean isVoidCompatible()
isVoidCompatible in interface PsiLambdaExpressionpublic boolean isValueCompatible()
isValueCompatible in interface PsiLambdaExpressionpublic PsiType getType()
PsiExpressiongetType in interface PsiExpressionpublic void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public boolean processDeclarations(PsiScopeProcessor processor, ResolveState state, PsiElement lastParent, PsiElement place)
PsiElementprocessDeclarations in interface PsiElementprocessDeclarations in class PsiElementBaseprocessor - the processor receiving the declarations.lastParent - the child of this element has been processed during the previous
step of the tree up walk (declarations under this element do not need
to be processed again)place - the original element from which the tree up walk was initiated.public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class java.lang.Objectpublic boolean hasFormalParameterTypes()
hasFormalParameterTypes in interface PsiLambdaExpressionpublic boolean isAcceptable(PsiType leftType, PsiMethod method)
isAcceptable in interface PsiFunctionalExpressionpublic boolean isPotentiallyCompatible(PsiType left)
PsiLambdaExpressionisPotentiallyCompatible in interface PsiFunctionalExpressionisPotentiallyCompatible in interface PsiLambdaExpressionpublic PsiType getGroundTargetType(PsiType functionalInterfaceType)
PsiFunctionalExpressiongetGroundTargetType in interface PsiFunctionalExpressionpublic javax.swing.Icon getIcon(int flags)
getIcon in interface IconablegetIcon in class ElementBase