public interface ResolvedRecordDeclaration extends ResolvedReferenceTypeDeclaration, ResolvedTypeParametrizable, HasAccessSpecifier
breadthFirstFunc, depthFirstFunc, JAVA_IO_SERIALIZABLE, JAVA_LANG_COMPARABLE, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_RECORD
Modifier and Type | Method and Description |
---|---|
default ResolvedRecordDeclaration |
asRecord()
Return this as a RecordDeclaration or throw UnsupportedOperationException.
|
List<ResolvedReferenceType> |
getAllInterfaces()
Return all the interfaces implemented by this class, either directly or indirectly, including the interfaces
extended by interfaces it implements.
|
List<ResolvedReferenceType> |
getAllSuperClasses()
Get all superclasses, with all the type typeParametersValues expressed as functions of the type
typeParametersValues of this declaration.
|
List<ResolvedConstructorDeclaration> |
getConstructors()
List of constructors available for the class.
|
List<ResolvedReferenceType> |
getInterfaces()
Return all the interfaces implemented directly by this class.
|
Optional<ResolvedReferenceType> |
getSuperClass()
This is a ReferenceTypeUsage because it could contain type typeParametersValues.
|
default boolean |
isRecord()
Is this the declaration of a record class?
|
asReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllAncestors, getAllFields, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getAncestors, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredFields, getDeclaredMethods, getField, getVisibleField, getVisibleFields, hasAnnotation, hasDirectlyAnnotation, hasField, hasVisibleField, isAssignableBy, isAssignableBy, isFunctionalInterface, isInheritedAnnotation, isJavaLangEnum, isJavaLangObject, isJavaLangRecord, isReferenceType
asAnnotation, asClass, asEnum, asInterface, asType, asTypeParameter, containerType, getClassName, getId, getInternalType, getPackageName, getQualifiedName, hasInternalType, internalTypes, isAnnotation, isAnonymousClass, isClass, isEnum, isInterface, isType, isTypeParameter
asEnumConstant, asField, asMethod, asParameter, asTypePattern, getName, hasName, isEnumConstant, isField, isMethod, isParameter, isTypePattern, isVariable
toAst, toAst
getTypeParameters, isGeneric
accessSpecifier
default boolean isRecord()
ResolvedTypeDeclaration
isRecord
in interface ResolvedTypeDeclaration
default ResolvedRecordDeclaration asRecord()
ResolvedTypeDeclaration
asRecord
in interface ResolvedTypeDeclaration
Optional<ResolvedReferenceType> getSuperClass()
class A extends B<Integer, String>
.
Note that only the Object class should not have a superclass and therefore return empty.
List<ResolvedReferenceType> getInterfaces()
List<ResolvedReferenceType> getAllSuperClasses()
List<ResolvedReferenceType> getAllInterfaces()
Get all interfaces, with all the type typeParametersValues expressed as functions of the type typeParametersValues of this declaration.
List<ResolvedConstructorDeclaration> getConstructors()
getConstructors
in interface ResolvedReferenceTypeDeclaration
Copyright © 2007–2024. All rights reserved.