Class Matcher
java.lang.Object
io.github.douira.glsl_transformer.ast.transform.Matcher
Instances of the matcher can match a node against a stored pattern. This
avoids a separate equality implementation for each node type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTraverse the given tree and the pattern at the same time and make sure they are the same at each visit step.void
-
Constructor Details
-
Matcher
-
Matcher
public Matcher(String input, Function<io.github.douira.glsl_transformer.GLSLParser, ? extends ExtendedContext> parseMethod)
-
-
Method Details
-
matches
Traverse the given tree and the pattern at the same time and make sure they are the same at each visit step. -
preparePatternItems
public void preparePatternItems()
-