java.lang.Object
io.github.douira.glsl_transformer.ast.query.Root

public class Root extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getActiveBuildRoot

      public static Root getActiveBuildRoot()
    • withActiveBuildRoot

      protected static <R> R withActiveBuildRoot(Root instance, Function<Root,R> rootConsumer)
    • indexNodes

      public static <NodeType extends ASTNode> NodeType indexNodes(Root instance, Supplier<NodeType> builder)
    • indexNodes

      protected static <NodeType extends ASTNode> void indexNodes(Root instance, Consumer<Passthrough<NodeType>> registerer)
    • indexNodes

      public static <NodeType extends ASTNode> NodeType indexNodes(Supplier<NodeType> builder)
    • indexNodes

      public static <NodeType extends ASTNode> NodeType indexNodes(ASTNode parentTreeMember, Supplier<NodeType> builder)
    • indexNodes

      public static <NodeType extends ASTNode> void indexNodes(Consumer<Passthrough<NodeType>> registerer)
    • indexNodes

      public static <NodeType extends ASTNode> void indexNodes(ASTNode parentTreeMember, Consumer<Passthrough<NodeType>> registerer)
    • registerChild

      public void registerChild(ASTNode child)
    • unregisterChild

      public void unregisterChild(ASTNode child)
    • merge

      public void merge(Root other)