java.lang.Object
org.htmlunit.corejs.javascript.lc.type.impl.TypeInfoBase
org.htmlunit.corejs.javascript.lc.type.impl.ClassTypeInfo
All Implemented Interfaces:
TypeInfo
Direct Known Subclasses:
BasicClassTypeInfo, EnumTypeInfo, InterfaceTypeInfo, PrimitiveClassTypeInfo

public abstract class ClassTypeInfo extends TypeInfoBase
  • Method Details

    • asClass

      public final Class<?> asClass()
      Description copied from interface: TypeInfo
      Get the Class object represented by this TypeInfo. For a Type object, the TypeInfo object created from the Type object should return the exact same class as the one after Java erased its generic type info
    • is

      public boolean is(Class<?> c)
      Returns:
      true if this TypeInfo represents the same class as the Class parameter, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString(TypeFormatContext ctx)
      Specified by:
      toString in interface TypeInfo
      Overrides:
      toString in class TypeInfoBase