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

Public Member Functions

String getParserName ()
 
- Public Member Functions inherited from org.turro.parser.AbstractParser
 AbstractParser ()
 
ParserMacroSet getParserMacros ()
 
boolean execute (IConstructor constructor, PrintWriter out, String[] tokens)
 

Protected Member Functions

boolean doExecute ()
 
void explainMacros (ParserMacroSet macros)
 
- Protected Member Functions inherited from org.turro.parser.AbstractParser
String getMacroName ()
 
String getToken (String name)
 
String getToken (String name, boolean defParameter)
 
String getToken (String name, String def)
 
String getToken (int index)
 
String getToken (int index, boolean defParameter)
 
String getToken (int index, String def)
 
int getTokenSize ()
 
String getDefaultFor (int index)
 
void prepareProperties (ElephantMarker marker, String properties)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.parser.AbstractParser
IConstructor constructor
 
String[] tokens
 
PrintWriter out
 
String parserName
 
ParserMacroSet parserMacros = new ParserMacroSet()
 

Detailed Description

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

Definition at line 29 of file DaoParser.java.

Member Function Documentation

◆ doExecute()

boolean org.turro.parser.DaoParser.doExecute ( )
protected

Reimplemented from org.turro.parser.AbstractParser.

Definition at line 37 of file DaoParser.java.

37  {
38  boolean done = false;
39  if("dao-search".equals(getMacroName())) {
40  DaoHtmlSearch dhs = DaoHtmlSearch.getInstance(constructor, getToken(1));
41  out.write(dhs.render(constructor));
42  done = true;
43  }
44  return done;
45  }
Here is the call graph for this function:

◆ explainMacros()

void org.turro.parser.DaoParser.explainMacros ( ParserMacroSet  macros)
protected

Reimplemented from org.turro.parser.AbstractParser.

Definition at line 48 of file DaoParser.java.

48  {
49  macros.addMacro("dao-search")
50  .addParameter("context", false);
51  }
Here is the call graph for this function:

◆ getParserName()

String org.turro.parser.DaoParser.getParserName ( )

Reimplemented from org.turro.parser.AbstractParser.

Definition at line 32 of file DaoParser.java.

32  {
33  return "DAO";
34  }

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