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
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 TypeMethodDescription<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<?> Returns information about the Pkl class associated with thisValue.
-
Method Details
-
accept
Invokes the given visitor's visit method for thisValue. -
accept
Invokes the given converters's convert method for thisValue. -
getClassInfo
PClassInfo<?> getClassInfo()Returns information about the Pkl class associated with thisValue.
-