Package org.pkl.core.runtime
Class VmTypeAlias
- java.lang.Object
-
- org.pkl.core.runtime.VmValue
-
- org.pkl.core.runtime.VmTypeAlias
-
public final class VmTypeAlias extends VmValue
-
-
Constructor Summary
Constructors Constructor Description VmTypeAlias(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, @Nullable com.oracle.truffle.api.source.SourceSection docComment, int modifiers, java.util.List<VmTyped> annotations, java.lang.String simpleName, VmTyped module, java.lang.String qualifiedName, java.util.List<TypeParameter> typeParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(VmValueConverter<T> converter, java.lang.Iterable<java.lang.Object> path)voidaccept(VmValueVisitor visitor)booleanequals(java.lang.Object obj)Enables calling `vmValue.equals()` when not behind a Truffle boundary.TypeAliasexport()voidforce(boolean allowUndefinedValues)Forces recursive (deep) evaluation of this value.java.util.List<VmTyped>getAnnotations()com.oracle.truffle.api.source.SourceSectiongetBaseTypeSection()Assuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `Y`.com.oracle.truffle.api.source.SourceSectiongetConstraintSection()Assuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `constraint`.@Nullable com.oracle.truffle.api.source.SourceSectiongetDocComment()com.oracle.truffle.api.source.SourceSectiongetHeaderSection()VmTypedgetMirror()VmSetgetModifierMirrors()VmTypedgetModuleMirror()java.lang.StringgetModuleName()java.lang.StringgetQualifiedName()java.lang.StringgetSimpleName()VmTypedgetTypeMirror()TypeNodegetTypeNode()intgetTypeParameterCount()VmListgetTypeParameterMirrors()VmClassgetVmClass()inthashCode()voidinitTypeCheckNode(TypeNode typeNode)TypeNodeinstantiate(TypeNode[] typeArgumentNodes)booleanisInitialized()java.lang.StringtoString()-
Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
-
-
-
Constructor Detail
-
VmTypeAlias
public VmTypeAlias(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, @Nullable com.oracle.truffle.api.source.SourceSection docComment, int modifiers, java.util.List<VmTyped> annotations, java.lang.String simpleName, VmTyped module, java.lang.String qualifiedName, java.util.List<TypeParameter> typeParameters)
-
-
Method Detail
-
initTypeCheckNode
public void initTypeCheckNode(TypeNode typeNode)
-
getHeaderSection
public com.oracle.truffle.api.source.SourceSection getHeaderSection()
-
getBaseTypeSection
public com.oracle.truffle.api.source.SourceSection getBaseTypeSection()
Assuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `Y`.
-
getConstraintSection
public com.oracle.truffle.api.source.SourceSection getConstraintSection()
Assuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `constraint`.
-
isInitialized
public boolean isInitialized()
-
getDocComment
public @Nullable com.oracle.truffle.api.source.SourceSection getDocComment()
-
getAnnotations
public java.util.List<VmTyped> getAnnotations()
-
getModuleName
public java.lang.String getModuleName()
-
getModuleMirror
public VmTyped getModuleMirror()
-
getSimpleName
public java.lang.String getSimpleName()
-
getQualifiedName
public java.lang.String getQualifiedName()
-
getTypeParameterCount
public int getTypeParameterCount()
-
getTypeNode
public TypeNode getTypeNode()
-
getVmClass
public VmClass getVmClass()
- Specified by:
getVmClassin classVmValue
-
force
public void force(boolean allowUndefinedValues)
Description copied from class:VmValueForces recursive (deep) evaluation of this value.
-
getMirror
public VmTyped getMirror()
-
getModifierMirrors
public VmSet getModifierMirrors()
-
getTypeParameterMirrors
public VmList getTypeParameterMirrors()
-
getTypeMirror
public VmTyped getTypeMirror()
-
accept
public void accept(VmValueVisitor visitor)
-
accept
public <T> T accept(VmValueConverter<T> converter, java.lang.Iterable<java.lang.Object> path)
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-