Package org.pkl.core
Class PModule
- java.lang.Object
-
- org.pkl.core.PObject
-
- org.pkl.core.PModule
-
public final class PModule extends PObject
Java representation of a Pkl module.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pkl.core.PObject
classInfo, properties
-
-
Constructor Summary
Constructors Constructor Description PModule(java.net.URI moduleUri, java.lang.String moduleName, PClassInfo<?> classInfo, java.util.Map<java.lang.String,java.lang.Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ValueVisitor visitor)Invokes the given visitor's visit method for thisValue.booleanequals(@Nullable java.lang.Object obj)java.lang.StringgetModuleName()java.net.URIgetModuleUri()java.lang.ObjectgetProperty(java.lang.String name)Returns the value of the property with the given name, or throwsNoSuchPropertyExceptionif no such property exists.inthashCode()java.lang.StringtoString()-
Methods inherited from class org.pkl.core.PObject
accept, getClassInfo, getProperties, render
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pkl.core.Composite
get, getPropertyOrNull, hasProperty
-
-
-
-
Constructor Detail
-
PModule
public PModule(java.net.URI moduleUri, java.lang.String moduleName, PClassInfo<?> classInfo, java.util.Map<java.lang.String,java.lang.Object> properties)
-
-
Method Detail
-
getModuleUri
public java.net.URI getModuleUri()
-
getModuleName
public java.lang.String getModuleName()
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
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
public void accept(ValueVisitor visitor)
Description copied from interface:ValueInvokes the given visitor's visit method for thisValue.
-
-