Package org.pkl.core

Class PNull

  • All Implemented Interfaces:
    java.io.Serializable, Value

    public final class PNull
    extends java.lang.Object
    implements Value
    Java representation of a pkl.base#Null value.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PNull()  
    • Constructor Detail

      • PNull

        public PNull()
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object