Package org.pkl.core
Class PClassInfo<T>
java.lang.Object
org.pkl.core.PClassInfo<T>
- All Implemented Interfaces:
Serializable
Information about a Pkl class and its Java representation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PClassInfo<PObject> static final PClassInfo<Void> static final PClassInfo<Boolean> static final PClassInfo<byte[]> static final PClassInfo<PClass> static final PClassInfo<Void> static final PClassInfo<DataSize> static final PClassInfo<PObject> static final PClassInfo<PObject> static final PClassInfo<Duration> static final PClassInfo<PObject> static final PClassInfo<Double> static final PClassInfo<Long> static final PClassInfo<ArrayList> static final PClassInfo<ArrayList> static final PClassInfo<LinkedHashMap> static final PClassInfo<LinkedHashMap> static final PClassInfo<PModule> static final Stringstatic final PClassInfo<PObject> static final PClassInfo<PObject> static final PClassInfo<PNull> static final PClassInfo<Void> static final PClassInfo<PObject> static final PClassInfo<Pair> static final PClassInfo<PObject> static final URIstatic final URIstatic final URIstatic final URIstatic final PClassInfo<PObject> static final PClassInfo<Pattern> static final PClassInfo<LinkedHashSet> static final PClassInfo<PObject> static final PClassInfo<String> static final PClassInfo<TypeAlias> static final PClassInfo<PObject> static final PClassInfo<Object> static final PClassInfo<PObject> static final PClassInfo<PObject> -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PClassInfo<?> forModuleClass(String moduleName, URI moduleUri) Returns the class info for the module class with the given module name.static <T> PClassInfo<T> forValue(T value) Returns the class info for the given value's class.static PClassInfo<?> Returns the class info for the class with the given module and class name.Returns the concrete Java class used to represent values of this Pkl class in Java.Returns the name of the module that this Pkl class is declared in.Returns the qualified name of this Pkl class, `moduleName/className`.Returns the simple name of this Pkl class.inthashCode()booleanbooleanisExactClassOf(Object value) booleanTells if this Pkl class is external (built-in).booleanbooleanTells if this class is defined in Pkl's standard library.toString()
-
Field Details
-
MODULE_CLASS_NAME
- See Also:
-
pklBaseUri
-
pklSemverUri
-
pklSettingsUri
-
pklProjectUri
-
Any
-
Null
-
String
-
Boolean
-
Number
-
Int
-
Float
-
Duration
-
DataSize
-
Bytes
-
Pair
-
Collection
-
List
-
Set
-
Map
-
Object
-
Dynamic
-
Typed
-
Listing
-
Mapping
-
Module
-
ModuleOutput
-
Class
-
TypeAlias
-
Regex
-
Deprecated
-
AlsoKnownAs
-
Unlisted
-
DocExample
-
PcfRenderDirective
-
ModuleInfo
-
Version
-
Project
-
Settings
-
-
Method Details
-
get
Returns the class info for the class with the given module and class name. -
forModuleClass
Returns the class info for the module class with the given module name. -
forValue
Returns the class info for the given value's class. -
getModuleName
Returns the name of the module that this Pkl class is declared in. Note that a module name is not guaranteed to be unique, especially if it not declared but inferred. -
getSimpleName
Returns the simple name of this Pkl class. -
getQualifiedName
Returns the qualified name of this Pkl class, `moduleName/className`. Note that a qualified class name is not guaranteed to be unique, especially if the module name is not declared but inferred. -
getDisplayName
-
isModuleClass
public boolean isModuleClass() -
getJavaClass
Returns the concrete Java class used to represent values of this Pkl class in Java. ReturnsVoid.classfor abstract Pkl classes. -
isExternalClass
public boolean isExternalClass()Tells if this Pkl class is external (built-in). -
isStandardLibraryClass
public boolean isStandardLibraryClass()Tells if this class is defined in Pkl's standard library. -
isConcreteCollectionClass
public boolean isConcreteCollectionClass() -
isExactClassOf
-
equals
-
hashCode
public int hashCode() -
toString
-
getModuleUri
-