Package org.pkl.core

Class PNull

java.lang.Object
org.pkl.core.PNull
All Implemented Interfaces:
Serializable, Value

public final class PNull extends Object implements Value
Java representation of a pkl.base#Null value.
See Also:
  • Constructor Details

    • PNull

      public PNull()
  • Method Details

    • getInstance

      public static PNull getInstance()
      Returns the sole instance of this class.
    • accept

      public void accept(ValueVisitor visitor)
      Description copied from interface: Value
      Invokes the given visitor's visit method for this Value.
      Specified by:
      accept in interface Value
    • accept

      public <T> T accept(ValueConverter<T> converter)
      Description copied from interface: Value
      Invokes the given converters's convert method for this Value.
      Specified by:
      accept in interface Value
    • getClassInfo

      public PClassInfo<?> getClassInfo()
      Description copied from interface: Value
      Returns information about the Pkl class associated with this Value.
      Specified by:
      getClassInfo in interface Value
    • toString

      public String toString()
      Overrides:
      toString in class Object