public class JavaPsiConstructorUtil
extends java.lang.Object
Constructor and Description |
---|
JavaPsiConstructorUtil() |
Modifier and Type | Method and Description |
---|---|
static PsiMethod |
findConstructorInSuper(PsiMethod constructor) |
static PsiMethodCallExpression |
findThisOrSuperCallInConstructor(PsiMethod constructor)
Finds call to another constructor within this constructor (either chained or super)
|
static boolean |
isChainedConstructorCall(PsiElement call)
Returns true if given element is a chained constructor call
|
static boolean |
isConstructorCall(PsiElement call) |
static boolean |
isSuperConstructorCall(PsiElement call) |
public static PsiMethodCallExpression findThisOrSuperCallInConstructor(PsiMethod constructor)
constructor
- constructor to search inpublic static boolean isChainedConstructorCall(PsiElement call)
call
- element to checkpublic static boolean isSuperConstructorCall(PsiElement call)
call
- element to checksuper
constructor callpublic static boolean isConstructorCall(PsiElement call)
call
- element to checkthis
or super
constructor call