use of net.praqma.jenkins.memorymap.parser.ti.TexasInstrumentsMemoryMapParser in project memory-map-plugin by Praqma.
the class MemoryMapJobDslContext method parser.
public void parser(String parserType, String parserUniqueName, String commandFile, String mapFile, Runnable closure) {
checkArgument(parserTypes.contains(parserType), "Parser type must be one of " + parserTypes);
MemoryMapParserDslContext context = new MemoryMapParserDslContext();
executeInContext(closure, context);
AbstractMemoryMapParser parser = null;
switch(parserType) {
case "GCC":
parser = new GccMemoryMapParser(parserUniqueName, mapFile, commandFile, wordSize, showBytesOnGraphs, context.graphConfigurations);
break;
case "TI":
parser = new TexasInstrumentsMemoryMapParser(parserUniqueName, mapFile, commandFile, wordSize, context.graphConfigurations, showBytesOnGraphs);
break;
default:
System.out.println("Unable to allocate parser: " + parserType);
break;
}
if (parser != null) {
parser.setParserTitle(context.parserTitle);
parsers.add(parser);
}
}
Aggregations