Class ReturnTypeFactory.VoidReturnType

java.lang.Object
org.jboss.logging.processor.apt.ReturnTypeFactory.VoidReturnType
All Implemented Interfaces:
AnnotatedConstruct, Element, ClassType, DelegatingElement, ReturnType
Enclosing class:
ReturnTypeFactory

private static class ReturnTypeFactory.VoidReturnType extends Object implements ReturnType
  • Field Details

  • Constructor Details

    • VoidReturnType

      private VoidReturnType(Types types)
  • Method Details

    • getInstance

      private static ReturnTypeFactory.VoidReturnType getInstance(Types types)
    • asType

      public TypeMirror asType()
      Specified by:
      asType in interface DelegatingElement
      Specified by:
      asType in interface Element
    • isThrowable

      public boolean isThrowable()
      Description copied from interface: ReturnType
      Checks to see if the return type is an exception, extends Throwable or the value of a Supplier is a Throwable type.
      Specified by:
      isThrowable in interface ReturnType
      Returns:
      true if the return type is an exception, otherwise false.
      See Also:
    • name

      public String name()
      Description copied from interface: ReturnType
      Returns the qualified class name of the return type.
      Specified by:
      name in interface ReturnType
      Returns:
      the qualified class name fo the return type.
    • throwableReturnType

      public ThrowableType throwableReturnType()
      Description copied from interface: ReturnType
      Returns the exception return type if ReturnType.isThrowable() returns true. Otherwise null is returned.
      Specified by:
      throwableReturnType in interface ReturnType
      Returns:
      an exception return type, otherwise null.
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Element
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Element
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isAssignableFrom

      public boolean isAssignableFrom(Class<?> type)
      Description copied from interface: ClassType
      Determines if this type is either the same as, or is a supertype of, the class represented by the type parameter. If this type is assignable from the class true is returned, otherwise false.
      Specified by:
      isAssignableFrom in interface ClassType
      Parameters:
      type - the class type to check.
      Returns:
      true if this type is the same as or a superclass of the class, otherwise false.
    • isSubtypeOf

      public boolean isSubtypeOf(Class<?> type)
      Description copied from interface: ClassType
      Determines if this type is a subtype of the class represented by the type parameter. If this type is a subtype of the class true is returned, otherwise false.
      Specified by:
      isSubtypeOf in interface ClassType
      Parameters:
      type - the class type to check.
      Returns:
      true if this type is a subtype of the class, otherwise false.
    • isSameAs

      public boolean isSameAs(Class<?> type)
      Description copied from interface: ClassType
      Determines if this type is the same type as the class represented by the type parameter. If this type is the same type as the class true is returned, otherwise false.
      Specified by:
      isSameAs in interface ClassType
      Parameters:
      type - the class type to check.
      Returns:
      true if this type is the same type as the class, otherwise false.
    • getDelegate

      public Element getDelegate()
      Description copied from interface: DelegatingElement
      The element to delegate the default methods to.
      Specified by:
      getDelegate in interface DelegatingElement
      Returns:
      the delegate