Package org.pkl.core
Interface Composite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable java.lang.Objectget(java.lang.String name)Same asgetProperty(java.lang.String)except that this method returnsnullinstead ofPNullfor Pkl valuenull.java.util.Map<java.lang.String,java.lang.Object>getProperties()Returns the properties of this composite.java.lang.ObjectgetProperty(java.lang.String name)Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.default @Nullable java.lang.ObjectgetPropertyOrNull(java.lang.String name)Shorthand forgetProperties().get(name);default booleanhasProperty(java.lang.String name)Shorthand forgetProperties.containsKey(name).-
Methods inherited from interface org.pkl.core.Value
accept, accept, getClassInfo
-
-
-
-
Method Detail
-
hasProperty
default boolean hasProperty(java.lang.String name)
Shorthand forgetProperties.containsKey(name).
-
getProperty
java.lang.Object getProperty(java.lang.String name)
Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.
-
getPropertyOrNull
default @Nullable java.lang.Object getPropertyOrNull(java.lang.String name)
Shorthand forgetProperties().get(name);
-
get
default @Nullable java.lang.Object get(java.lang.String name)
Same asgetProperty(java.lang.String)except that this method returnsnullinstead ofPNullfor Pkl valuenull.
-
getProperties
java.util.Map<java.lang.String,java.lang.Object> getProperties()
Returns the properties of this composite.
-
-