Class AbstractClassType

java.lang.Object
org.jboss.logging.processor.apt.AbstractClassType
All Implemented Interfaces:
AnnotatedConstruct, ClassType
Direct Known Subclasses:
MessageInterfaceFactory.AptMessageInterface, MessageInterfaceFactory.LoggerInterface, ParameterFactory.AptParameter, ReturnTypeFactory.AptReturnType, ThrowableTypeFactory.AptThrowableType

abstract class AbstractClassType extends Object implements ClassType
  • Field Details

  • Constructor Details

  • Method Details

    • isAssignableFrom

      public final 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 final 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 final 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.
    • toType

      private TypeMirror toType(Class<?> type)
      Creates a TypeMirror from a class type.
      Parameters:
      type - the type to create the TypeMirror for
      Returns:
      the TypeMirror to represent the type