+ "field1 : String\n"
+ "field2 : String\n"
+ "field3 : String\n"
+ "end\n";
SuggestionCompletionLoader loader = new SuggestionCompletionLoader();
List<String> enums = new ArrayList<String>();
final String enumDefinitions = "'Fact.field1' : ['f1a', 'f1b'], "
+ "'Fact.field2[field1=f1a]' : ['f1af2a', 'f1af2b'], "
+ "'Fact.field2[field1=f1b]' : ['f1bf2a', 'f1bf2b'], "
+ "'Fact.field3[field2=f1af2a]' : ['f1af2af3a', 'f1af2af3b'], "
+ "'Fact.field3[field2=f1af2b]' : ['f1af2bf3a', 'f1af2bf3b'], "
+ "'Fact.field3[field2=f1bf2a]' : ['f1bf2af3a', 'f1bf2af3b'], "
+ "'Fact.field3[field2=f1bf2b]' : ['f1bf2bf3a', 'f1bf2bf3b']";
enums.add( enumDefinitions );
SuggestionCompletionEngine sce = loader.getSuggestionEngine( pkg,
new ArrayList<JarInputStream>(),
new ArrayList<DSLTokenizedMappingFile>(),
enums );
Pattern52 p1 = new Pattern52();