Package org.pkl.core

Interface Value

All Superinterfaces:
Serializable
All Known Subinterfaces:
Composite
All Known Implementing Classes:
DataSize, Duration, Pair, PClass, PModule, PNull, PObject, TypeAlias

public interface Value extends Serializable
Java representation of a Pkl value.

The following Pkl values aren't represented as Value but as instances of Java standard library classes:

  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    accept(ValueConverter<T> converter)
    Invokes the given converters's convert method for this Value.
    void
    Invokes the given visitor's visit method for this Value.
    Returns information about the Pkl class associated with this Value.
  • Method Details

    • accept

      void accept(ValueVisitor visitor)
      Invokes the given visitor's visit method for this Value.
    • accept

      <T> T accept(ValueConverter<T> converter)
      Invokes the given converters's convert method for this Value.
    • getClassInfo

      PClassInfo<?> getClassInfo()
      Returns information about the Pkl class associated with this Value.