BrightSide Workbench Full Report + Source Code
org.turro.parser.processor.AbstractMacroProcessor Class Referenceabstract
Inheritance diagram for org.turro.parser.processor.AbstractMacroProcessor:
Collaboration diagram for org.turro.parser.processor.AbstractMacroProcessor:

Public Member Functions

 AbstractMacroProcessor ()
 
MacroMap getMacros ()
 
Macro getMacro (String name)
 
void process (MacroProcessorContext context)
 
abstract String getName ()
 

Protected Member Functions

abstract void doProcess (MacroProcessorContext context)
 
abstract void explainMacros (MacroMap macros)
 
void prepareProperties (ElephantMarker marker, String properties)
 

Protected Attributes

MacroMap macros = new MacroMap()
 

Detailed Description

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

Definition at line 35 of file AbstractMacroProcessor.java.

Constructor & Destructor Documentation

◆ AbstractMacroProcessor()

org.turro.parser.processor.AbstractMacroProcessor.AbstractMacroProcessor ( )

Definition at line 39 of file AbstractMacroProcessor.java.

39  {
40  initParser();
41  }

Member Function Documentation

◆ doProcess()

abstract void org.turro.parser.processor.AbstractMacroProcessor.doProcess ( MacroProcessorContext  context)
abstractprotected

◆ explainMacros()

abstract void org.turro.parser.processor.AbstractMacroProcessor.explainMacros ( MacroMap  macros)
abstractprotected

◆ getMacro()

Macro org.turro.parser.processor.AbstractMacroProcessor.getMacro ( String  name)

Implements org.turro.parser.processor.IMacroProcessor.

Definition at line 48 of file AbstractMacroProcessor.java.

48  {
49  return macros.get(name);
50  }

◆ getMacros()

MacroMap org.turro.parser.processor.AbstractMacroProcessor.getMacros ( )

Definition at line 43 of file AbstractMacroProcessor.java.

43  {
44  return macros;
45  }

◆ getName()

abstract String org.turro.parser.processor.AbstractMacroProcessor.getName ( )
abstract

◆ prepareProperties()

void org.turro.parser.processor.AbstractMacroProcessor.prepareProperties ( ElephantMarker  marker,
String  properties 
)
protected

Definition at line 61 of file AbstractMacroProcessor.java.

61  {
62  try {
63  File file = Files.file(marker.getConstructor(), properties + ".properties");
64  if(file.exists()) {
65  marker.put("props", FileUtil.getOrderedProperties(file));
66  }
67  } catch (IOException ex) {
68  Logger.getLogger(AbstractMacroProcessor.class.getName()).log(Level.SEVERE, null, ex);
69  }
70  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process()

void org.turro.parser.processor.AbstractMacroProcessor.process ( MacroProcessorContext  context)

Implements org.turro.parser.processor.IMacroProcessor.

Definition at line 53 of file AbstractMacroProcessor.java.

53  {
54  doProcess(context);
55  }
abstract void doProcess(MacroProcessorContext context)
Here is the call graph for this function:

Member Data Documentation

◆ macros

MacroMap org.turro.parser.processor.AbstractMacroProcessor.macros = new MacroMap()
protected

Definition at line 37 of file AbstractMacroProcessor.java.


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