@Test public void testStarRegex() { String regex = "a*"; GramBooleanQuery exactQuery = RegexToGramQueryTranslator.translate(regex); GramBooleanQuery expectedQuery = new GramBooleanQuery(GramBooleanQuery.QueryOp.OR); printTranslatorResult(regex); Assert.assertEquals(expectedQuery, exactQuery); Assert.assertEquals(exactQuery, expectedQuery); }
public static GramBooleanQuery translate(String regex) throws com.google.re2j.PatternSyntaxException { return translate(regex, TranslatorUtils.DEFAULT_GRAM_LENGTH); }
RegexToGramQueryTranslator { public static GramBooleanQuery translate(String regex) throws com.google.re2j.PatternSyntaxException { return translate(regex, TranslatorUtils.DEFAULT_GRAM_LENGTH); } }
RegexToGramQueryTranslator { public static GramBooleanQuery translate(String regex) throws com.google.re2j.PatternSyntaxException { return translate(regex, TranslatorUtils.DEFAULT_GRAM_LENGTH); }  }
RegexToGramQueryTranslator { public static GramBooleanQuery translate(String regex) throws com.google.re2j.PatternSyntaxException { return translate(regex, TranslatorUtils.DEFAULT_GRAM_LENGTH); }  static GramBooleanQuery translate(String regex); static GramBooleanQuery translate(String regex, int gramLength); }
RegexToGramQueryTranslator { public static GramBooleanQuery translate(String regex) throws com.google.re2j.PatternSyntaxException { return translate(regex, TranslatorUtils.DEFAULT_GRAM_LENGTH); }  static GramBooleanQuery translate(String regex); static GramBooleanQuery translate(String regex, int gramLength);  }