Class TypeParameter


  • public class TypeParameter
    extends java.lang.Object
    A TypeParameter.
     TypeParameter:
        Identifier ['extends' Bound]
    
     Bound:
        Type { '&' Type }
     
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<Type> bounds  
      private Token name  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBound​(Type bound)
      Adds a bound to this type parameter.
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private Token name
      • bounds

        private java.util.List<Type> bounds
    • Constructor Detail

      • TypeParameter

        public TypeParameter​(Token name)
    • Method Detail

      • addBound

        public void addBound​(Type bound)
        Adds a bound to this type parameter.
        Parameters:
        bound - The bound to add.
      • getName

        public java.lang.String getName()