Class VmTyped


  • public final class VmTyped
    extends VmObject
    • Constructor Detail

      • VmTyped

        public VmTyped​(com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame,
                       @Nullable VmTyped parent,
                       @Nullable VmClass clazz,
                       org.graalvm.collections.UnmodifiableEconomicMap<java.lang.Object,​ObjectMember> members)
    • Method Detail

      • lateInitVmClass

        public void lateInitVmClass​(VmClass clazz)
      • addProperty

        public void addProperty​(ObjectMember property)
      • addProperties

        public void addProperties​(org.graalvm.collections.UnmodifiableEconomicMap<java.lang.Object,​ObjectMember> properties)
      • getParent

        public @Nullable VmTyped getParent()
        Description copied from class: VmObjectLike
        Returns the parent object in the prototype chain. For each concrete subclass X of VmOwner, the exact return type of this method is `X|VmTyped`.
        Overrides:
        getParent in class VmObject
      • getModuleInfo

        public ModuleInfo getModuleInfo()
      • getModuleMirror

        public VmTyped getModuleMirror()
      • getSupermoduleMirror

        public VmValue getSupermoduleMirror()
      • getImports

        public VmMap getImports()
      • getClassMirrors

        public VmMap getClassMirrors()
      • getTypeAliasMirrors

        public VmMap getTypeAliasMirrors()
      • export

        public Composite export()
        Description copied from class: VmObjectLike
        Exports this object to an external representation. Does not export local, hidden, or external properties
        Specified by:
        export in class VmObjectLike
      • 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​(@Nullable 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