public class PsiMethodCallExpressionImpl extends ExpressionPsiElement implements PsiMethodCallExpression
Iconable.IconFlags, Iconable.LastComputedIcon
ourHC
EMPTY_ARRAY
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPE
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
PsiMethodCallExpressionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
static boolean |
doWePerformGenericMethodOverloadResolutionNow(PsiCall call,
LanguageLevel languageLevel) |
ASTNode |
findChildByRole(int role) |
PsiExpressionList |
getArgumentList()
Returns the list of arguments passed to the called method.
|
int |
getChildRole(ASTNode child) |
PsiReferenceExpression |
getMethodExpression()
Returns the reference expression specifying the called method.
|
PsiType |
getType()
Returns the type of the expression.
|
PsiReferenceParameterList |
getTypeArgumentList()
Returns the type argument list specified on the called method.
|
PsiType [] |
getTypeArguments()
Returns the type arguments specified on the called method as an array.
|
void |
removeChild(ASTNode child)
Removes the specified node from the list of children of this node.
|
PsiMethod |
resolveMethod()
Resolves the reference to the called method and returns the method.
|
JavaResolveResult |
resolveMethodGenerics()
Resolves the reference to the called method and returns the resolve result
containing the method and the substitutor for generic type parameters.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
hashCode, replaceChildInternal
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, checkAdd, checkDelete, clone, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getFirstChild, getLanguage, getLastChild, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPresentation, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, navigate, processDeclarations, replace
acceptTree, addChild, addChild, addChildren, addInternal, addLeaf, clearCaches, countChildren, createPsiNoLock, deleteChildInternal, findChildByRoleAsPsiElement, findChildByType, findChildByType, findChildByType, findChildByType, findLeafElementAt, findPsiChildByType, findPsiChildByType, getCachedLength, getChars, getChildren, getChildrenAsPsiElements, getChildrenAsPsiElements, getChildRole, getFirstChildNode, getLastChildNode, getPsi, getPsi, getText, getTextLength, hc, rawAddChildren, rawAddChildrenWithoutNotifications, rawFirstChild, rawLastChild, rawRemoveAllChildren, removeAllChildren, removeRange, replaceAllChildrenToChildrenOf, replaceChild, setPsi, subtreeChanged, textContains, textMatches, textToCharArray
copyElement, equals, getElementType, getManager, getStartOffset, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithList, textMatches, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
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
getUserData, putUserData
getCopyableUserData, putCopyableUserData
public PsiType getType()
PsiExpression
getType
in interface PsiExpression
public PsiMethod resolveMethod()
PsiCall
resolveMethod
in interface PsiCall
public JavaResolveResult resolveMethodGenerics()
PsiCall
resolveMethodGenerics
in interface PsiCall
JavaResolveResult.EMPTY
if unresolvedpublic void removeChild(ASTNode child)
ASTNode
removeChild
in interface ASTNode
removeChild
in class CompositeElement
child
- the child node to remove.public PsiReferenceParameterList getTypeArgumentList()
PsiCallExpression
getTypeArgumentList
in interface PsiCallExpression
public PsiType [] getTypeArguments()
PsiCallExpression
getTypeArguments
in interface PsiCallExpression
public PsiReferenceExpression getMethodExpression()
PsiMethodCallExpression
getMethodExpression
in interface PsiMethodCallExpression
public PsiExpressionList getArgumentList()
PsiCall
getArgumentList
in interface PsiCall
getArgumentList
in interface PsiMethodCallExpression
public ASTNode findChildByRole(int role)
findChildByRole
in class CompositeElement
public int getChildRole(ASTNode child)
getChildRole
in class CompositeElement
public void accept(PsiElementVisitor visitor)
PsiElement
accept
in interface PsiElement
accept
in class CompositePsiElement
visitor
- the visitor to pass the element to.public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class CompositePsiElement
public static boolean doWePerformGenericMethodOverloadResolutionNow(PsiCall call, LanguageLevel languageLevel)