Class VmTypeAlias


  • public final class VmTypeAlias
    extends VmValue
    • 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()
      • force

        public void force​(boolean allowUndefinedValues)
        Description copied from class: VmValue
        Forces recursive (deep) evaluation of this value.
        Specified by:
        force in class VmValue
      • getMirror

        public VmTyped getMirror()
      • getModifierMirrors

        public VmSet getModifierMirrors()
      • getTypeParameterMirrors

        public VmList getTypeParameterMirrors()
      • getTypeMirror

        public VmTyped getTypeMirror()
      • accept

        public <T> T accept​(VmValueConverter<T> converter,
                            java.lang.Iterable<java.lang.Object> path)
        Specified by:
        accept in class VmValue
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: VmValue
        Enables calling `vmValue.equals()` when not behind a Truffle boundary.
        Specified by:
        equals in class VmValue
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object