Package org.pkl.core.runtime
Class VmTypeAlias
java.lang.Object
org.pkl.core.runtime.VmValue
org.pkl.core.runtime.VmTypeAlias
-
Constructor Summary
ConstructorsConstructorDescriptionVmTypeAlias(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, @Nullable com.oracle.truffle.api.source.SourceSection docComment, int modifiers, List<VmTyped> annotations, String simpleName, VmTyped module, String qualifiedName, List<TypeParameter> typeParameters, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(VmValueConverter<T> converter, Iterable<Object> path) voidaccept(VmValueVisitor visitor) booleanEnables calling `vmValue.equals()` when not behind a Truffle boundary.export()voidforce(boolean allowUndefinedValues) Forces recursive (deep) evaluation of this value.com.oracle.truffle.api.source.SourceSectionAssuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `Y`.com.oracle.truffle.api.source.SourceSectionAssuming a type alias of the form `typealias X = Y(constraint)`, returns the source section of `constraint`.@Nullable com.oracle.truffle.api.source.SourceSectioncom.oracle.truffle.api.frame.Framecom.oracle.truffle.api.source.SourceSectionintinthashCode()voidinitTypeCheckNode(TypeNode typeNode) instantiate(TypeNode[] typeArgumentNodes) booleantoString()Methods inherited from class org.pkl.core.runtime.VmValue
export, exportNullable, force, getPrototype, isDynamic, isListing, isMapping, isPrototype, isSequence, isTyped
-
Constructor Details
-
VmTypeAlias
public VmTypeAlias(com.oracle.truffle.api.source.SourceSection sourceSection, com.oracle.truffle.api.source.SourceSection headerSection, @Nullable @Nullable com.oracle.truffle.api.source.SourceSection docComment, int modifiers, List<VmTyped> annotations, String simpleName, VmTyped module, String qualifiedName, List<TypeParameter> typeParameters, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame)
-
-
Method Details
-
initTypeCheckNode
-
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
-
getAnnotations
-
getModuleName
-
getModuleMirror
-
getSimpleName
-
getQualifiedName
-
getTypeParameterCount
public int getTypeParameterCount() -
getTypeNode
-
getEnclosingFrame
public com.oracle.truffle.api.frame.Frame getEnclosingFrame() -
instantiate
-
getVmClass
- Specified by:
getVmClassin classVmValue
-
force
public void force(boolean allowUndefinedValues) Description copied from class:VmValueForces recursive (deep) evaluation of this value. -
export
-
getMirror
-
getModifierMirrors
-
getTypeParameterMirrors
-
getTypeMirror
-
accept
-
accept
-
equals
Description copied from class:VmValueEnables calling `vmValue.equals()` when not behind a Truffle boundary. -
hashCode
public int hashCode() -
toString
-