public class PsiNewExpressionImpl extends ExpressionPsiElement implements PsiNewExpression
Iconable.IconFlags, Iconable.LastComputedIconourHCEMPTY_ARRAYFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPEICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
PsiNewExpressionImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
void |
deleteChildInternal(ASTNode child) |
ASTNode |
findChildByRole(int role) |
PsiAnonymousClass |
getAnonymousClass()
Returns the anonymous class created by the
new expression. |
PsiExpressionList |
getArgumentList()
Returns the list of arguments passed to the called method.
|
PsiExpression [] |
getArrayDimensions()
Returns the expressions specifying the dimensions of the created array in
an array creation expression.
|
PsiArrayInitializerExpression |
getArrayInitializer()
Returns the expression specifying the initializer for the created array in
an array creation expression.
|
int |
getChildRole(ASTNode child) |
PsiJavaCodeReferenceElement |
getClassOrAnonymousClassReference()
Returns the reference element specifying the class the instance of which is created,
or, if it's an anonymous class creation, corresponding base class reference.
|
PsiJavaCodeReferenceElement |
getClassReference()
Returns the reference element specifying the class the instance of which is created.
|
PsiPolyVariantCachingReference |
getConstructorFakeReference() |
PsiType |
getOwner(PsiAnnotation annotation)
For type-annotated array creation expressions returns subtype of getType(),
to which an annotation belongs.
|
PsiExpression |
getQualifier()
Returns the qualifier (expression specifying instance of outer class) for a
qualified class instance creation expression.
|
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.
|
PsiMethod |
resolveConstructor()
Resolves the reference to the called constructor and returns the constructor.
|
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, replaceChildInternalacceptChildren, 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, replaceacceptTree, addChild, addChild, addChildren, addInternal, addLeaf, clearCaches, countChildren, createPsiNoLock, 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, removeChild, removeRange, replaceAllChildrenToChildrenOf, replaceChild, setPsi, subtreeChanged, textContains, textMatches, textToCharArraycopyElement, equals, getElementType, getManager, getStartOffset, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithList, textMatches, textMatches, textMatchesbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, notify, notifyAll, wait, wait, waitisArrayCreationacceptChildren, 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, textToCharArraygetUserData, putUserDatagetCopyableUserData, putCopyableUserDatapublic PsiType getType()
PsiExpressiongetType in interface PsiExpressionpublic PsiType getOwner(PsiAnnotation annotation)
PsiNewExpressiongetOwner in interface PsiNewExpressionannotation - annotation to find the type for.public PsiExpressionList getArgumentList()
PsiCallgetArgumentList in interface PsiCallpublic PsiExpression [] getArrayDimensions()
PsiNewExpressiongetArrayDimensions in interface PsiNewExpressionnew expression is not an array creation expression.public PsiArrayInitializerExpression getArrayInitializer()
PsiNewExpressiongetArrayInitializer in interface PsiNewExpressionnew
expression is not an array creation expression or has no initializer.public PsiMethod resolveMethod()
PsiCallresolveMethod in interface PsiCallpublic PsiPolyVariantCachingReference getConstructorFakeReference()
public JavaResolveResult resolveMethodGenerics()
PsiCallresolveMethodGenerics in interface PsiCallJavaResolveResult.EMPTY if unresolvedpublic PsiExpression getQualifier()
PsiNewExpressiongetQualifier in interface PsiNewExpressionpublic PsiReferenceParameterList getTypeArgumentList()
PsiCallExpressiongetTypeArgumentList in interface PsiCallExpressionpublic PsiType [] getTypeArguments()
PsiCallExpressiongetTypeArguments in interface PsiCallExpressionpublic PsiMethod resolveConstructor()
PsiConstructorCallPsiCall.resolveMethod().resolveConstructor in interface PsiConstructorCallpublic PsiJavaCodeReferenceElement getClassReference()
PsiNewExpressiongetClassReference in interface PsiNewExpressionpublic PsiAnonymousClass getAnonymousClass()
PsiNewExpressionnew expression.getAnonymousClass in interface PsiNewExpressionpublic PsiJavaCodeReferenceElement getClassOrAnonymousClassReference()
PsiNewExpressiongetClassOrAnonymousClassReference in interface PsiNewExpressionpublic void deleteChildInternal(ASTNode child)
deleteChildInternal in class CompositeElementpublic ASTNode findChildByRole(int role)
findChildByRole in class CompositeElementpublic int getChildRole(ASTNode child)
getChildRole in class CompositeElementpublic void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class CompositePsiElementvisitor - the visitor to pass the element to.public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class CompositePsiElement