Class SignatureAttribute.TypeParameter

    • Constructor Detail

      • TypeParameter

        public TypeParameter​(java.lang.String name,
                             SignatureAttribute.ObjectType superClass,
                             SignatureAttribute.ObjectType[] superInterfaces)
        Constructs a TypeParameter representing a type parametre like <T extends ... >.
        Parameters:
        name - parameter name.
        superClass - an upper bound class-type (or null).
        superInterfaces - an upper bound interface-type (or null).
      • TypeParameter

        public TypeParameter​(java.lang.String name)
        Constructs a TypeParameter representing a type parameter like <T>.
        Parameters:
        name - parameter name.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the type parameter.
      • getInterfaceBound

        public SignatureAttribute.ObjectType[] getInterfaceBound()
        Returns the interface bound of this parameter.
        Returns:
        a zero-length array if the interface bound is not specified.
      • toString

        public java.lang.String toString()
        Returns the string representation.
        Overrides:
        toString in class java.lang.Object