Class EmptyRoot
java.lang.Object
io.github.douira.glsl_transformer.ast.query.Root
io.github.douira.glsl_transformer.ast.query.EmptyRoot
The empty root overrides a normal root just to do nothing. This allows a root
stub to exist without the performance cost of registering and unregistering
nodes.
-
Field Summary
Fields inherited from class io.github.douira.glsl_transformer.ast.query.Root
identifierIndex, nodeIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterIdentifierRename(Identifier identifier) voidregisterNode(ASTNode node) Registers the given node with this root.voidunregisterIdentifierRename(Identifier identifier) voidunregisterNode(ASTNode node) Unregisters the given node from this root.Methods inherited from class io.github.douira.glsl_transformer.ast.query.Root
getActiveBuildRoot, indexBuildSession, indexBuildSession, indexBuildSession, indexNodes, indexNodes, indexNodes, indexSeparateTrees, indexSeparateTrees, indexSeparateTrees, process, process, processMatches, processMatches, rename, replaceExpressionMatches, replaceExpressionMatches, replaceExpressions, replaceExpressionsConcurrent, replaceReferenceExpressions, replaceReferenceExpressions, replaceReferenceExpressionsReport, replaceReferenceExpressionsReport, withActiveBuildRoot
-
Constructor Details
-
EmptyRoot
public EmptyRoot()
-
-
Method Details
-
registerIdentifierRename
- Overrides:
registerIdentifierRenamein classRoot
-
registerNode
Description copied from class:RootRegisters the given node with this root.- Overrides:
registerNodein classRoot- Parameters:
node- The node to register
-
unregisterIdentifierRename
- Overrides:
unregisterIdentifierRenamein classRoot
-
unregisterNode
Description copied from class:RootUnregisters the given node from this root.- Overrides:
unregisterNodein classRoot- Parameters:
node- The node to unregister
-