Class ClassConstant

  • All Implemented Interfaces:
    Value

    public final class ClassConstant
    extends Constant
    Represents a class constant (Class object reference).
    • Constructor Detail

      • ClassConstant

        public ClassConstant​(IRType classType)
        Creates a class constant with the given IR type.
        Parameters:
        classType - the class type
      • ClassConstant

        public ClassConstant​(String className)
        Creates a class constant with the given class name.
        Parameters:
        className - the internal class name
    • Method Detail

      • getClassType

        public IRType getClassType()
        Returns:
        the class type
      • getType

        public IRType getType()
        Description copied from interface: Value
        Gets the IR type of this value.
        Returns:
        the IR type
      • getValue

        public IRType getValue()
        Description copied from class: Constant
        Gets the value of this constant.
        Specified by:
        getValue in class Constant
        Returns:
        the constant value
      • getClassName

        public String getClassName()
        Gets the class name in internal format.
        Returns:
        the internal class name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object