public class Expression extends NamedProgramCodeGeneratorAdapter
Red (mankit) |
Red (mankit) Needs 2nd pass for array children of different types |
Modifier and Type | Class and Description |
---|---|
protected static class |
Expression.VariableScope
Variable scope class customized for the CParseTreeCodeGenerator.
|
ProgramCodeGeneratorAdapter.Channel
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected CParseTreeCodeGenerator |
_cParseTreeCodeGenerator
The parse tree code generator.
|
_component, _defaultBlocks, _eol, _templateParser
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
Expression(Expression actor)
Constructor method for the Expression adapter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_generateFireCode()
Generate fire code.
|
java.lang.String |
generateInitializeCode()
Generate initialize code.
|
java.lang.String |
generatePreinitializeCode()
Generate preinitialize code.
|
java.lang.String |
generateWrapupCode()
Generate wrap up code.
|
java.util.Set |
getHeaderFiles()
Get the files needed by the code generated for the
Expression actor.
|
java.util.Set |
getSharedCode()
Get shared code.
|
_generateTypeConvertStatement, analyzeTypeConvert, copyFilesToCodeDirectory, generateFireCode, generateFireFunctionCode, generateMainLoop, generateModeTransitionCode, generatePostfireCode, generatePrefireCode, generatePreinitializeMethodBodyCode, generateSimpleName, generateTypeConvertFireCode, generateTypeConvertFireCode, generateVariableDeclaration, generateVariableInitialization, getAddTimeString, getBufferSize, getBufferSize, getComponent, getDeclareSharedCode, getDefaultBlocks, getFireFunctionParameters, getIncludeDirectories, getLibraries, getLibraryDirectories, getModifiedVariables, getName, getParameterValue, getReference, getReference, getSinkChannels, getSourceTimeString, getTimeSourcePortName, getTypeConvertChannels, getTypeConvertReference, getTypeConvertSinkChannels, setupAdapter, targetType
_generateBlockByName, getAdapter, getCodeGenerator, getTemplateParser, processCode, setCodeGenerator, setTemplateParser, toString
createDecoratorAttributes, generateName
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getContainedObject, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateExistence, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getContainer, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setName, setPersistent, setSource, sortContainedObjects, toplevel, uniqueName, validateSettables, workspace
protected CParseTreeCodeGenerator _cParseTreeCodeGenerator
public Expression(Expression actor)
actor
- The associated actor.protected java.lang.String _generateFireCode() throws IllegalActionException
fireBlock
from Expression.c,
replaces macros with their values and appends the processed code
block to the given code buffer._generateFireCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.lang.String generateInitializeCode() throws IllegalActionException
initBlock
from Expression.c,
replaces macros with their values and returns the processed code string.generateInitializeCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.lang.String generatePreinitializeCode() throws IllegalActionException
preinitBlock
from Expression.c,
replaces macros with their values and returns the processed code string.generatePreinitializeCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.util.Set getSharedCode() throws IllegalActionException
sharedBlock
from Expression.c, replaces macros
with their values and returns the processed code string.getSharedCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.lang.String generateWrapupCode() throws IllegalActionException
wrapupBlock
from Expression.c,
replaces macros with their values and appends the processed code block
to the given code buffer.generateWrapupCode
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- If the code stream encounters an
error in processing the specified code block(s).public java.util.Set getHeaderFiles() throws IllegalActionException
getHeaderFiles
in class NamedProgramCodeGeneratorAdapter
IllegalActionException
- Not Thrown in this subclass.