Package org.pkl.core
Class TypeParameter
java.lang.Object
org.pkl.core.TypeParameter
- All Implemented Interfaces:
Serializable
A type parameter of a generic class, type alias, or method.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe variance of a type parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Returns the index of this type parameter in its owner's type parameter list, starting from zero.getName()Returns the name of this type parameter.getOwner()Returns the generic class, type alias, or method that this type parameter belongs to.Returns the variance of this type parameter.voidInitializes the generic class, type alias, or method that this type parameter belongs to.
-
Constructor Details
-
TypeParameter
-
-
Method Details
-
initOwner
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
Returns the generic class, type alias, or method that this type parameter belongs to. -
getVariance
Returns the variance of this type parameter. -
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.
-