Class TypeNode.TypeVariableNode

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

public static final class TypeNode.TypeVariableNode extends TypeNode.WriteFrameSlotTypeNode
  • Constructor Details

    • TypeVariableNode

      public TypeVariableNode(com.oracle.truffle.api.source.SourceSection sourceSection, TypeParameter typeParameter)
  • Method Details

    • getTypeParameterIndex

      public int getTypeParameterIndex()
    • isNoopTypeCheck

      public boolean isNoopTypeCheck()
      Overrides:
      isNoopTypeCheck in class TypeNode
    • getMirror

      public VmTyped getMirror()
      Overrides:
      getMirror in class TypeNode
    • getTypeParameterMirror

      public VmTyped getTypeParameterMirror()
    • 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
    • doExport

      protected PType doExport()
      Overrides:
      doExport in class TypeNode