Class MethodTypeConstant

  • All Implemented Interfaces:
    Value

    public final class MethodTypeConstant
    extends Constant
    Represents a MethodType constant loaded via ldc.
    • Constructor Detail

      • MethodTypeConstant

        public MethodTypeConstant​(String descriptor)
        Creates a MethodType constant.
        Parameters:
        descriptor - the method descriptor
    • Method Detail

      • getDescriptor

        public String getDescriptor()
        Returns:
        the descriptor
      • getType

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object