Class BasicClassTypeInfo

All Implemented Interfaces:
TypeInfo

public class BasicClassTypeInfo extends ClassTypeInfo
  • Constructor Details

    • BasicClassTypeInfo

      public BasicClassTypeInfo(Class<?> type)
  • Method Details

    • isVoid

      public boolean isVoid()
      Returns:
      true if this TypeInfo represents Void class or void class
    • isBoolean

      public boolean isBoolean()
      Returns:
      true if this TypeInfo represents Boolean class or boolean class
    • isByte

      public boolean isByte()
      Returns:
      true if this TypeInfo represents Byte class or byte class
    • isShort

      public boolean isShort()
      Returns:
      true if this TypeInfo represents Short class or short class
    • isInt

      public boolean isInt()
      Returns:
      true if this TypeInfo represents Integer class or int class
    • isLong

      public boolean isLong()
      Returns:
      true if this TypeInfo represents Long class or long class
    • isFloat

      public boolean isFloat()
      Returns:
      true if this TypeInfo represents Float class or float class
    • isDouble

      public boolean isDouble()
      Returns:
      true if this TypeInfo represents Double class or double class
    • isCharacter

      public boolean isCharacter()
      Returns:
      true if this TypeInfo represents Character class or char class
    • isString

      public boolean isString()
      Returns:
      true if this TypeInfo represents String class
    • isObjectExact

      public boolean isObjectExact()
      Returns:
      true if this TypeInfo represents Object class
    • shouldReplace

      public boolean shouldReplace()
      not standard, made only because return type of Array.newInstance(Class, int) is Object instead of something representing an array
      Returns:
      true if this type contains too little information (e.g. being TypeInfo.NONE) and should be replaced by actual object type, false otherwise