Class ThrowableTypeFactory


  • final class ThrowableTypeFactory
    extends java.lang.Object
    Describes information about the return type.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ThrowableType forReturnType​(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.type.TypeMirror type, MessageMethod messageMethod)
      Creates a new descriptor that is not primitive.
      static ThrowableType of​(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.type.TypeMirror type)
      Creates a new descriptor that is not primitive.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThrowableTypeFactory

        private ThrowableTypeFactory()
    • Method Detail

      • forReturnType

        public static ThrowableType forReturnType​(javax.annotation.processing.ProcessingEnvironment processingEnv,
                                                  javax.lang.model.type.TypeMirror type,
                                                  MessageMethod messageMethod)
        Creates a new descriptor that is not primitive.
        Parameters:
        processingEnv - the annotation processing environment.
        type - the class name of the return type.
        messageMethod - the message method.
        Returns:
        the return type descriptor.
      • of

        public static ThrowableType of​(javax.annotation.processing.ProcessingEnvironment processingEnv,
                                       javax.lang.model.type.TypeMirror type)
        Creates a new descriptor that is not primitive.
        Parameters:
        processingEnv - the annotation processing environment.
        type - the class name of the return type.
        Returns:
        the return type descriptor.