Package org.pkl.core
Class TypeAlias
java.lang.Object
org.pkl.core.Member
org.pkl.core.TypeAlias
- All Implemented Interfaces:
Serializable,Value
Java representation of a
pkl.base#TypeAlias value.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pkl.core.Member
Member.SourceLocation -
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.Returns the type that this type alias stands for.PClassInfo<?>Returns information about the Pkl class associated with thisValue.Returns the name of this type alias for use in user-facing messages.Returns the name of the module that this type alias is declared in.Returns the qualified name of this type alias, `moduleName#typeAliasName`.voidinitAliasedType(PType type) toString()Methods inherited from class org.pkl.core.Member
getAnnotations, getDocComment, getModifiers, getSimpleName, getSourceLocation, isAbstract, isExternal, isHidden, isOpen, isStandardLibraryMember
-
Constructor Details
-
TypeAlias
-
-
Method Details
-
initAliasedType
-
getModuleName
Returns the name of the module that this type alias is declared in. Note that a module name is not guaranteed to be unique, especially if it not declared but inferred from the module URI.- Specified by:
getModuleNamein classMember
-
getQualifiedName
Returns the qualified name of this type alias, `moduleName#typeAliasName`. Note that a qualified type alias name is not guaranteed to be unique, especially if the module name is not declared but inferred from the module URI. -
getDisplayName
Returns the name of this type alias for use in user-facing messages. -
getTypeParameters
-
getAliasedType
Returns the type that this type alias stands for. -
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. -
getClassInfo
Description copied from interface:ValueReturns information about the Pkl class associated with thisValue.- Specified by:
getClassInfoin interfaceValue
-
toString
-