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

Public Member Functions

MacroProcessors constructor (IConstructor constructor)
 
MacroProcessors contact (IContact contact)
 
MacroProcessors allowed (Set< String > allowed)
 
MacroProcessors forbidden (Set< String > forbidden)
 
String process (String text)
 
void process (Writer writer, String text)
 
 MacroProcessors ()
 

Static Public Member Functions

static void main (String[] args)
 
static MacroProcessors mail ()
 
static MacroProcessors full ()
 

Detailed Description

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

Definition at line 37 of file MacroProcessors.java.

Constructor & Destructor Documentation

◆ MacroProcessors()

org.turro.parser.processor.MacroProcessors.MacroProcessors ( )

Definition at line 138 of file MacroProcessors.java.

138  {
139  this.allowed = new HashSet<>();
140  this.forbidden = new HashSet<>();
141  }
Here is the caller graph for this function:

Member Function Documentation

◆ allowed()

MacroProcessors org.turro.parser.processor.MacroProcessors.allowed ( Set< String >  allowed)

Definition at line 53 of file MacroProcessors.java.

53  {
54  this.allowed = allowed;
55  return this;
56  }

◆ constructor()

MacroProcessors org.turro.parser.processor.MacroProcessors.constructor ( IConstructor  constructor)

Definition at line 43 of file MacroProcessors.java.

43  {
44  this.constructor = constructor;
45  return this;
46  }

◆ contact()

MacroProcessors org.turro.parser.processor.MacroProcessors.contact ( IContact  contact)

Definition at line 48 of file MacroProcessors.java.

48  {
49  this.contact = contact;
50  return this;
51  }

◆ forbidden()

MacroProcessors org.turro.parser.processor.MacroProcessors.forbidden ( Set< String >  forbidden)

Definition at line 58 of file MacroProcessors.java.

58  {
59  this.forbidden = forbidden;
60  return this;
61  }

◆ full()

static MacroProcessors org.turro.parser.processor.MacroProcessors.full ( )
static

Definition at line 127 of file MacroProcessors.java.

127  {
128  return new MacroProcessors();
129  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mail()

static MacroProcessors org.turro.parser.processor.MacroProcessors.mail ( )
static

Definition at line 123 of file MacroProcessors.java.

123  {
124  return new MacroProcessors().allowed(Set.of("user-name", "user-mail", "user-lang"));
125  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

static void org.turro.parser.processor.MacroProcessors.main ( String[]  args)
static

Definition at line 39 of file MacroProcessors.java.

39  {
40  System.out.println(MacroProcessors.mail().process("Provem... @{user-name(void=@{user-mail(void=@{user-lang(void=\"Anonymous\")})})}"));
41  }
Here is the call graph for this function:

◆ process() [1/2]

String org.turro.parser.processor.MacroProcessors.process ( String  text)

Definition at line 65 of file MacroProcessors.java.

65  {
66  if(text.contains(MACRO_START)) {
67  StringWriter writer = new StringWriter();
68  process(writer, text);
69  return writer.toString();
70  }
71  return text;
72  }
Here is the caller graph for this function:

◆ process() [2/2]

void org.turro.parser.processor.MacroProcessors.process ( Writer  writer,
String  text 
)

Definition at line 74 of file MacroProcessors.java.

74  {
75  if(text.contains(MACRO_START)) {
76  MacroParser.of(MACRO_START, MACRO_END).process(writer, text, content -> {
77  processContent(content, writer);
78  });
79  }
80  }

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