Class ReturnTypeFactory.VoidReturnType

    • Field Detail

      • voidElement

        private final javax.lang.model.element.Element voidElement
      • voidType

        private final javax.lang.model.type.NoType voidType
      • hash

        private final int hash
    • Constructor Detail

      • VoidReturnType

        private VoidReturnType​(javax.lang.model.util.Types types)
    • Method Detail

      • asType

        public javax.lang.model.type.TypeMirror asType()
        Specified by:
        asType in interface DelegatingElement
        Specified by:
        asType in interface javax.lang.model.element.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:
        ReturnType.resolvedType()
      • name

        public java.lang.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.
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface javax.lang.model.element.Element
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface javax.lang.model.element.Element
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public boolean isAssignableFrom​(java.lang.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​(java.lang.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​(java.lang.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 javax.lang.model.element.Element getDelegate()
        Description copied from interface: DelegatingElement
        The element to delegate the default methods to.
        Specified by:
        getDelegate in interface DelegatingElement
        Returns:
        the delegate