Package org.pkl.core
Class PModule
java.lang.Object
org.pkl.core.PObject
org.pkl.core.PModule
- All Implemented Interfaces:
Serializable,Composite,Value
Java representation of a Pkl module.
- See Also:
-
Field Summary
Fields inherited from class org.pkl.core.PObject
classInfo, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ValueVisitor visitor) Invokes the given visitor's visit method for thisValue.booleangetProperty(String name) Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.inthashCode()toString()Methods inherited from class org.pkl.core.PObject
accept, getClassInfo, getProperties, renderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pkl.core.Composite
get, getPropertyOrNull, hasProperty
-
Constructor Details
-
PModule
-
-
Method Details
-
getModuleUri
-
getModuleName
-
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- Overrides:
getPropertyin classPObject
-
accept
Description copied from interface:ValueInvokes the given visitor's visit method for thisValue. -
equals
-
hashCode
public int hashCode() -
toString
-