Class BaseTypeSignature


  • public class BaseTypeSignature
    extends TypeSignature
    A type signature for a base type.
    • Constructor Detail

      • BaseTypeSignature

        public BaseTypeSignature​(String baseType)
        Parameters:
        baseType - the base type
    • Method Detail

      • getBaseType

        public String getBaseType()
        Get the base type, such as "int", "float", or "void".
        Returns:
        The base type.
      • instantiate

        public Class<?> instantiate​(ScanResult scanResult)
        Description copied from class: TypeSignature
        Instantiate the type signature into a class reference. The ScanResult is used to ensure the correct classloader is used to load the class.
        Specified by:
        instantiate in class TypeSignature
        Parameters:
        scanResult - The scan result.
        Returns:
        The instantiation of the type signature as a Class<?>.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object