public class ProceduralTemplateParser extends TemplateParser
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
_includeFiles
The set of header files that needed to be included.
|
_codeGenerator, _component, _parseTreeCodeGenerator| Constructor and Description |
|---|
ProceduralTemplateParser()
Construct the ProceduralTemplateParser.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateFireCode()
Generate code that corresponds with the fire() method.
|
java.util.Set<java.lang.String> |
getHeaderFiles()
Get the files needed by the code generated from this adapter class.
|
ParseTreeCodeGenerator |
getParseTreeCodeGenerator()
Return a new parse tree code generator to use with expressions.
|
void |
init(java.lang.Object component,
ProgramCodeGeneratorAdapter adapter)
Init the TemplateParser with the associated
given component and the given adapter.
|
_findClosedParen, _getCodeGenerator, _replaceMacro, addFunctionUsed, addNewTypesUsed, escapeName, escapePortName, generateBlockCode, generateTypeConvertMethod, generateTypeConvertStatement, getCodeStream, getFunctionInvocation, getNewInvocation, getParameterValue, getPort, getSize, indexOf, parseList, processCode, setCodeGenerator, unescapeName, unescapePortNameprotected java.util.Set<java.lang.String> _includeFiles
public ProceduralTemplateParser()
public void init(java.lang.Object component,
ProgramCodeGeneratorAdapter adapter)
init in class TemplateParsercomponent - The associated component.adapter - The associated adapter.public java.util.Set<java.lang.String> getHeaderFiles()
throws IllegalActionException
getHeaderFiles in class TemplateParserIllegalActionException - Not Thrown in this base class.public java.lang.String generateFireCode()
public ParseTreeCodeGenerator getParseTreeCodeGenerator()
getParseTreeCodeGenerator in class TemplateParser