Package org.pkl.core
Class PNull
- java.lang.Object
-
- org.pkl.core.PNull
-
- All Implemented Interfaces:
java.io.Serializable,Value
public final class PNull extends java.lang.Object implements Value
Java representation of apkl.base#Nullvalue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PNull()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ValueConverter<T> converter)Invokes the given converters's convert method for thisValue.voidaccept(ValueVisitor visitor)Invokes the given visitor's visit method for thisValue.PClassInfo<?>getClassInfo()Returns information about the Pkl class associated with thisValue.static PNullgetInstance()Returns the sole instance of this class.java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static PNull getInstance()
Returns the sole instance of this class.
-
accept
public void accept(ValueVisitor visitor)
Description copied from interface:ValueInvokes the given visitor's visit method for thisValue.
-
accept
public <T> T accept(ValueConverter<T> converter)
Description copied from interface:ValueInvokes the given converters's convert method for thisValue.
-
getClassInfo
public PClassInfo<?> getClassInfo()
Description copied from interface:ValueReturns information about the Pkl class associated with thisValue.- Specified by:
getClassInfoin interfaceValue
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-