Class Value.TypeValue

  • All Implemented Interfaces:
    Value
    Enclosing interface:
    Value

    public static final class Value.TypeValue
    extends Object
    implements Value
    A type reference: either an internal name (java/lang/String) or a descriptor (I).
    • Constructor Detail

      • TypeValue

        public TypeValue​(String type)
        Parameters:
        type - an internal name or a descriptor
        Throws:
        NullPointerException - if type is null
    • Method Detail

      • get

        public String get()
        Returns:
        the internal name or descriptor, never null
      • kind

        public ValueKind kind()
        Specified by:
        kind in interface Value
        Returns:
        the discriminator identifying which variant this is
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object