Package org.pkl.core

Class TypeParameter

java.lang.Object
org.pkl.core.TypeParameter
All Implemented Interfaces:
Serializable

public final class TypeParameter extends Object implements Serializable
A type parameter of a generic class, type alias, or method.
See Also:
  • Constructor Details

  • Method Details

    • initOwner

      public void initOwner(Member owner)
      Initializes the generic class, type alias, or method that this type parameter belongs to. This method must be called as part of initializing this object. It is kept separate from the constructor to help clients avoid circular evaluation.
    • getOwner

      public Member getOwner()
      Returns the generic class, type alias, or method that this type parameter belongs to.
    • getVariance

      public TypeParameter.Variance getVariance()
      Returns the variance of this type parameter.
    • getName

      public String getName()
      Returns the name of this type parameter.
    • getIndex

      public int getIndex()
      Returns the index of this type parameter in its owner's type parameter list, starting from zero.