Package org.pkl.core

Class PType

java.lang.Object
org.pkl.core.PType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PType.Alias, PType.Class, PType.Constrained, PType.Function, PType.Nullable, PType.StringLiteral, PType.TypeVariable, PType.Union

public abstract class PType extends Object implements Serializable
A Pkl type as used in type annotations.
See Also:
  • Field Details

    • UNKNOWN

      public static final PType UNKNOWN
      The `unknown` type. Omitting a type annotation is equivalent to stating this type.
    • NOTHING

      public static final PType NOTHING
      The bottom type.
    • MODULE

      public static final PType MODULE
      The type of the enclosing module.
  • Method Details

    • getTypeArguments

      public List<PType> getTypeArguments()