public class JavaPsiRecordUtil
extends java.lang.Object
Constructor and Description |
---|
JavaPsiRecordUtil() |
Modifier and Type | Method and Description |
---|---|
static PsiMethod |
findCanonicalConstructor(PsiClass recordClass) |
static PsiRecordComponent |
getComponentForField(PsiField field) |
static PsiField |
getFieldForComponent(PsiRecordComponent component) |
static PsiRecordComponent |
getRecordComponentForAccessor(PsiMethod accessor) |
static boolean |
isCompactConstructor(PsiMethod method) |
static boolean |
isExplicitCanonicalConstructor(PsiMethod method) |
public static PsiRecordComponent getRecordComponentForAccessor(PsiMethod accessor)
accessor
- accessor method for record componentpublic static PsiField getFieldForComponent(PsiRecordComponent component)
component
- record componentpublic static PsiRecordComponent getComponentForField(PsiField field)
field
- synthetic field that corresponds to the record componentpublic static boolean isCompactConstructor(PsiMethod method)
method
- method to checkpublic static boolean isExplicitCanonicalConstructor(PsiMethod method)
method
- method to checkpublic static PsiMethod findCanonicalConstructor(PsiClass recordClass)
recordClass
- record class