Class Root
java.lang.Object
io.github.douira.glsl_transformer.ast.query.Root
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rootstatic voidindexBuildSession(ASTNode parentTreeMember, Runnable session) static voidindexBuildSession(Root instance, Runnable session) static voidindexBuildSession(Runnable session) static <NodeType extends ASTNode>
NodeTypeindexNodes(ASTNode parentTreeMember, Supplier<NodeType> builder) static <NodeType extends ASTNode>
NodeTypeindexNodes(Root instance, Supplier<NodeType> builder) static <NodeType extends ASTNode>
NodeTypeindexNodes(Supplier<NodeType> builder) static <NodeType extends ASTNode>
voidindexSeparateTrees(ASTNode parentTreeMember, Consumer<Passthrough<NodeType>> registerer) protected static <NodeType extends ASTNode>
voidindexSeparateTrees(Root instance, Consumer<Passthrough<NodeType>> registererConsumer) static <NodeType extends ASTNode>
voidindexSeparateTrees(Consumer<Passthrough<NodeType>> registerer) voidvoidregisterChild(ASTNode child) voidunregisterChild(ASTNode child) protected static <R> RwithActiveBuildRoot(Root instance, Function<Root, R> rootConsumer)
-
Field Details
-
nodeIndex
-
identifierIndex
-
-
Constructor Details
-
Root
-
Root
public Root()
-
-
Method Details
-
getActiveBuildRoot
-
withActiveBuildRoot
-
indexNodes
-
indexNodes
-
indexNodes
-
indexBuildSession
-
indexBuildSession
-
indexBuildSession
-
indexSeparateTrees
protected static <NodeType extends ASTNode> void indexSeparateTrees(Root instance, Consumer<Passthrough<NodeType>> registererConsumer) -
indexSeparateTrees
public static <NodeType extends ASTNode> void indexSeparateTrees(Consumer<Passthrough<NodeType>> registerer) -
indexSeparateTrees
public static <NodeType extends ASTNode> void indexSeparateTrees(ASTNode parentTreeMember, Consumer<Passthrough<NodeType>> registerer) -
registerChild
-
unregisterChild
-
merge
-