@JavaDispatcher.Defaults @JavaDispatcher.Proxied(value="java.lang.Class") protected static interface TypeDescription.ForLoadedType.Dispatcher
Class that are not declared for Java 6.| Modifier and Type | Method and Description |
|---|---|
AnnotatedElement[] |
getAnnotatedInterfaces(Class<?> type)
Resolves the annotated interfaces of the supplied type.
|
AnnotatedElement |
getAnnotatedSuperclass(Class<?> type)
Resolves the annotated super class of the supplied type.
|
Class<?> |
getNestHost(Class<?> type)
Returns the specified class's nest host.
|
Class<?>[] |
getNestMembers(Class<?> type)
Returns the nest members of the other class.
|
Class<?>[] |
getPermittedSubclasses(Class<?> type)
Returns the permitted subclasses of the supplied type.
|
Object[] |
getRecordComponents(Class<?> type)
Resolves a type's record components.
|
boolean |
isNestmateOf(Class<?> type,
Class<?> candidate)
Returns
true if the specified type is a nest mate of the other type. |
boolean |
isRecord(Class<?> type)
Checks if the supplied type is a record.
|
boolean |
isSealed(Class<?> type)
Checks if this type is sealed.
|
@MaybeNull AnnotatedElement getAnnotatedSuperclass(Class<?> type)
type - The type to resolve.null if this feature is not supported.AnnotatedElement[] getAnnotatedInterfaces(Class<?> type)
type - The type to resolve.@MaybeNull Class<?> getNestHost(Class<?> type)
type - The class for which to locate the nest host.Class<?>[] getNestMembers(Class<?> type)
type - The type to get the nest members for.boolean isNestmateOf(Class<?> type, Class<?> candidate)
true if the specified type is a nest mate of the other type.type - The type to evaluate for being a nest mate of another type.candidate - The candidate type.true if the specified type is a nest mate of the other class.boolean isSealed(Class<?> type)
false if the current VM does
not support sealed classes.type - The type to checktrue if the supplied type is sealed.@MaybeNull Class<?>[] getPermittedSubclasses(Class<?> type)
type - The type for which to check the permitted subclasses.boolean isRecord(Class<?> type)
type - The type to resolve.true if the supplied type is a record.@MaybeNull Object[] getRecordComponents(Class<?> type)
type - The type for which to read the record components.Copyright © 2014–2025. All rights reserved.