BrightSide Workbench Full Report + Source Code
org.turro.parser.processor.MacroAdapter Class Reference

Public Member Functions

 MacroAdapter (Macro macro, Map< String, String > parameters)
 
String getName ()
 
String getEmpty ()
 
String get (String name)
 

Detailed Description

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

Definition at line 30 of file MacroAdapter.java.

Constructor & Destructor Documentation

◆ MacroAdapter()

org.turro.parser.processor.MacroAdapter.MacroAdapter ( Macro  macro,
Map< String, String >  parameters 
)

Definition at line 35 of file MacroAdapter.java.

35  {
36  this.macro = macro;
37  this.parameters = parameters;
38  }

Member Function Documentation

◆ get()

String org.turro.parser.processor.MacroAdapter.get ( String  name)

Definition at line 48 of file MacroAdapter.java.

48  {
49  return parameters.getOrDefault(name, macro.getDefault(name));
50  }
Here is the caller graph for this function:

◆ getEmpty()

String org.turro.parser.processor.MacroAdapter.getEmpty ( )

Definition at line 44 of file MacroAdapter.java.

44  {
45  return parameters.get("void");
46  }
Here is the caller graph for this function:

◆ getName()

String org.turro.parser.processor.MacroAdapter.getName ( )

Definition at line 40 of file MacroAdapter.java.

40  {
41  return macro.getName();
42  }
Here is the caller graph for this function:

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