Class DSLShare

java.lang.Object
com.oracle.truffle.api.dsl.internal.DSLShare

public class DSLShare extends Object
Contains utility classes shared across generated DSLNode implementations.
  • Constructor Details

    • DSLShare

      public DSLShare()
  • Method Details

    • isExcluded

      public static boolean isExcluded(Node currentNode, DSLMetadata otherMetadata)
    • rewrite

      public static <T extends Node & DSLNode> T rewrite(Node thisNode, T newNode, String message)
    • findRoot

      public static <T extends Node> T findRoot(T node)
    • rewriteUninitialized

      public static <T extends Node & DSLNode> T rewriteUninitialized(Node uninitialized, T newNode)
    • rewriteToPolymorphic

      public static <T extends Node & DSLNode> T rewriteToPolymorphic(Node oldNode, DSLNode uninitializedDSL, T polymorphic, DSLNode currentCopy, DSLNode newNodeDSL, String message)