Package org.pkl.core
Interface Value
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
Composite
- All Known Implementing Classes:
DataSize,Duration,Pair,PClass,PModule,PNull,PObject,TypeAlias
public interface Value extends java.io.SerializableJava representation of a Pkl value.The following Pkl values aren't represented as
Valuebut as instances of Java standard library classes:pkl.base#String:Stringpkl.base#Boolean:Booleanpkl.base#Int:Longpkl.base#Float:Doublepkl.base#List:Listpkl.base#Set:Setpkl.base#Map:Mappkl.base#Listing:Listpkl.base#Mapping:Mappkl.base#Regex:Pattern
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
accept
void accept(ValueVisitor visitor)
Invokes the given visitor's visit method for thisValue.
-
accept
<T> T accept(ValueConverter<T> converter)
Invokes the given converters's convert method for thisValue.
-
getClassInfo
PClassInfo<?> getClassInfo()
Returns information about the Pkl class associated with thisValue.
-
-