Class TypeNode.DynamicTypeNode

All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
TypeNode

public static final class TypeNode.DynamicTypeNode extends TypeNode.ObjectSlotTypeNode
  • Constructor Details

    • DynamicTypeNode

      public DynamicTypeNode(com.oracle.truffle.api.source.SourceSection sourceSection)
  • Method Details

    • execute

      public void execute(com.oracle.truffle.api.frame.VirtualFrame frame, Object value)
      Description copied from class: TypeNode
      Checks if `value` conforms to this type. If so, returns normally. Otherwise, throws a `VmTypeMismatchException`.
      Specified by:
      execute in class TypeNode
    • getVmClass

      public VmClass getVmClass()
      Overrides:
      getVmClass in class TypeNode
    • createDefaultValue

      public Object createDefaultValue(VmLanguage language, com.oracle.truffle.api.source.SourceSection headerSection, String qualifiedName)
      Overrides:
      createDefaultValue in class TypeNode