-
- All Implemented Interfaces:
-
dev.thecodewarrior.mirror.type.TypeMirror
public interface VoidMirror implements TypeMirror
The type of mirror used to represent the
voidtype.
-
-
Method Summary
Modifier and Type Method Description abstract VoidMirrorwithTypeAnnotations(List<Annotation> annotations)Creates a copy of this type mirror that has been specialized to have the passed Type Annotations. abstract Class<?>getCoreType()The Java Core Reflection type this mirror represents abstract AnnotatedTypegetCoreAnnotatedType()The Java Core Reflection annotated type this mirror represents. abstract VoidMirrorgetRaw()The mirror representing this type without any generic specialization abstract Class<?>getErasure()The JVM erasure of this type. abstract AnnotationListgetTypeAnnotations()The type annotations present on this type. -
-
Method Detail
-
withTypeAnnotations
abstract VoidMirror withTypeAnnotations(List<Annotation> annotations)
Creates a copy of this type mirror that has been specialized to have the passed Type Annotations. Type annotations on this mirror will not carry over to the resulting mirror.
Note that are not the annotations present on the class declaration, they are the annotations present on the use of the type.
-
getCoreType
abstract Class<?> getCoreType()
The Java Core Reflection type this mirror represents
-
getCoreAnnotatedType
abstract AnnotatedType getCoreAnnotatedType()
The Java Core Reflection annotated type this mirror represents.
!!NOTE!! The JVM implementations of
AnnotatedTypedon't implementequalsorhashCode, so they will equal neither each other nor this. If you need these methods pass any annotated type through Mirror.toCanonical.
-
getRaw
abstract VoidMirror getRaw()
The mirror representing this type without any generic specialization
-
getErasure
abstract Class<?> getErasure()
The JVM erasure of this type.
-
getTypeAnnotations
abstract AnnotationList getTypeAnnotations()
The type annotations present on this type. These are not the annotations present on the declaration, they are the annotations present on the use of the type.
-
-
-
-