Class SuperclassNodeIndex
java.lang.Object
io.github.douira.glsl_transformer.ast.query.NodeIndex
io.github.douira.glsl_transformer.ast.query.SuperclassNodeIndex
The superclass node index also creates index entries for the superclasses for
all nodes. This means querying for Expression returns all nodes that extend
Expression.
-
Field Summary
Fields inherited from class io.github.douira.glsl_transformer.ast.query.NodeIndex
bucketConstructor, index -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod used internally to add a node to the index.protected voiditerateClasses(ASTNode node, BiConsumer<Class<? extends ASTNode>, ASTNode> consumer) voidMethod used internally to remove a node from the index.static SuperclassNodeIndexstatic SuperclassNodeIndex
-
Constructor Details
-
SuperclassNodeIndex
-
SuperclassNodeIndex
public SuperclassNodeIndex()
-
-
Method Details
-
withHashSetBuckets
-
withLinkedHashSetBuckets
-
iterateClasses
-
add
Description copied from class:NodeIndexMethod used internally to add a node to the index. This is only meant to be called byRoot. -
remove
Description copied from class:NodeIndexMethod used internally to remove a node from the index. This is only meant to be called byRoot.
-