public final class GrammarFunctions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GrammarFunctions.Advanced |
static class |
GrammarFunctions.Predicate |
static class |
GrammarFunctions.Standard |
Modifier and Type | Method and Description |
---|---|
protected static Matcher |
convertToMatcher(java.lang.Object object) |
protected static Matcher[] |
convertToMatchers(java.lang.Object[] objects) |
static void |
enableMemoizationOfMatchesForAllRules(Grammar grammar)
Allows to enable memoization for all rules in given grammar.
|
static void |
resetCache() |
public static void resetCache()
public static void enableMemoizationOfMatchesForAllRules(Grammar grammar)
Usage of GrammarFunctions.Advanced.memoizeMatches(Object)
is preferable than this method, because provides fine-grained control over memoization.
Also note that this method was introduced in order to simplify migration from version 1.13 and may disappear in future versions.
protected static Matcher[] convertToMatchers(java.lang.Object[] objects)
protected static Matcher convertToMatcher(java.lang.Object object)
Copyright © 2012 SonarSource. All Rights Reserved.