Class AutoHintedMatcher<T extends ASTNode>


public class AutoHintedMatcher<T extends ASTNode> extends HintedMatcher<T>
The auto-hinted matcher is a matcher that automatically determines the hint by finding the longest identifier in the pattern. If that hint is not the best (most distinguishing) hint, then the manually hinted HintedMatcher should be used instead.
  • Constructor Details

    • AutoHintedMatcher

      public AutoHintedMatcher(String input, Function<io.github.douira.glsl_transformer.GLSLParser,RuleType> parseMethod, BiFunction<ASTBuilder,RuleType,T> visitMethod, String wildcardPrefix)
    • AutoHintedMatcher

      public AutoHintedMatcher(T pattern, String wildcardPrefix)
    • AutoHintedMatcher

      public AutoHintedMatcher(T pattern)
    • AutoHintedMatcher

      public AutoHintedMatcher(String input, Function<io.github.douira.glsl_transformer.GLSLParser,RuleType> parseMethod, BiFunction<ASTBuilder,RuleType,T> visitMethod)
    • AutoHintedMatcher

      public AutoHintedMatcher(String input, Function<String,T> patternParser, String wildcardPrefix)
    • AutoHintedMatcher

      public AutoHintedMatcher(String input, Function<String,T> patternParser)