BrightSide Workbench Full Report + Source Code
org.turro.parser.ParserMacroSet Class Reference
Inheritance diagram for org.turro.parser.ParserMacroSet:
Collaboration diagram for org.turro.parser.ParserMacroSet:

Public Member Functions

ParserMacro addMacro (String macroName)
 
void copyParametersTo (ParserMacro origin, ParserMacro destiny)
 
void addDefaultsFor (String name, ParserMacroSet macros)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file ParserMacroSet.java.

Member Function Documentation

◆ addDefaultsFor()

void org.turro.parser.ParserMacroSet.addDefaultsFor ( String  name,
ParserMacroSet  macros 
)

Definition at line 45 of file ParserMacroSet.java.

45  {
46  addMacro(name + "-summary").copyParametersFrom(name, macros);
47  addMacro(name + "-ranking").copyParametersFrom(name, macros);
48  addMacro(name + "-summary-ranking").copyParametersFrom(name, macros);
49  addMacro(name + "-restricted").copyParametersFrom(name, macros);
50  addMacro(name + "-summary-ranking-restricted").copyParametersFrom(name, macros);
51  addMacro(name + "-ranking-restricted").copyParametersFrom(name, macros);
52  }
ParserMacro addMacro(String macroName)
void copyParametersFrom(String macroName, ParserMacroSet macros)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addMacro()

ParserMacro org.turro.parser.ParserMacroSet.addMacro ( String  macroName)

Definition at line 29 of file ParserMacroSet.java.

29  {
30  ParserMacro pm = new ParserMacro(macroName, size());
31  add(pm);
32  return pm;
33  }
Here is the caller graph for this function:

◆ copyParametersTo()

void org.turro.parser.ParserMacroSet.copyParametersTo ( ParserMacro  origin,
ParserMacro  destiny 
)

Definition at line 35 of file ParserMacroSet.java.

35  {
36  for(ParserParameter parameter : origin.getParameters()) {
37  destiny.addParameter(parameter.getName(), parameter.isOptional(),
38  parameter.getDefaultValue(), parameter.isCommaSeparated());
39  for(String value : parameter.getPossibleValues()) {
40  destiny.addPossibleValue(value);
41  }
42  }
43  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: