java.lang.Object
io.github.douira.glsl_transformer.ast.transform.Matcher

public class Matcher extends Object
Instances of the matcher can match a node against a stored pattern. This avoids a separate equality implementation for each node type.
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(ASTNode tree)
      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()