Package 

Interface VoidMirror

  • All Implemented Interfaces:
    dev.thecodewarrior.mirror.type.TypeMirror

    
    public interface VoidMirror
     implements TypeMirror
                        

    The type of mirror used to represent the void type.

    • Method Summary

      Modifier and Type Method Description
      abstract VoidMirror withTypeAnnotations(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 AnnotatedType getCoreAnnotatedType() The Java Core Reflection annotated type this mirror represents.
      abstract VoidMirror getRaw() The mirror representing this type without any generic specialization
      abstract Class<?> getErasure() The JVM erasure of this type.
      abstract AnnotationList getTypeAnnotations() The type annotations present on this type.
      • Methods inherited from class dev.thecodewarrior.mirror.type.VoidMirror

        asArrayMirror, asClassMirror, isAssignableFrom, toJavaString, toKotlinString, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 AnnotatedType don't implement equals or hashCode, 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