Package org.pkl.core
Class PObject
java.lang.Object
org.pkl.core.PObject
- All Implemented Interfaces:
Serializable,Composite,Value
- Direct Known Subclasses:
PModule
Java representation of a Pkl object.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleanfinal PClassInfo<?> Returns information about the Pkl class associated with thisValue.Returns the properties of this composite.getProperty(String name) Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.inthashCode()protected StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pkl.core.Composite
get, getPropertyOrNull, hasProperty
-
Field Details
-
classInfo
-
properties
-
-
Constructor Details
-
PObject
-
-
Method Details
-
getClassInfo
Description copied from interface:ValueReturns information about the Pkl class associated with thisValue.- Specified by:
getClassInfoin interfaceValue
-
getProperties
Description copied from interface:CompositeReturns the properties of this composite.- Specified by:
getPropertiesin interfaceComposite
-
getProperty
Description copied from interface:CompositeReturns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.- Specified by:
getPropertyin interfaceComposite
-
accept
Description copied from interface:ValueInvokes the given visitor's visit method for thisValue. -
accept
Description copied from interface:ValueInvokes the given converters's convert method for thisValue. -
equals
-
hashCode
public int hashCode() -
toString
-
render
-