|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.codegen.kernel.CodeGeneratorHelper
ptolemy.codegen.java.kernel.JavaCodeGeneratorHelper
ptolemy.codegen.java.actor.lib.Expression
public class Expression
A code generation helper class for ptolemy.actor.lib.Expression.
| Red (mankit) |
| Red (mankit) Needs 2nd pass for array children of different types |
| Nested Class Summary | |
|---|---|
protected static class |
Expression.VariableScope
Variable scope class customized for the JavaParseTreeCodeGenerator. |
| Nested classes/interfaces inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
|---|
CodeGeneratorHelper.Channel |
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
protected JavaParseTreeCodeGenerator |
_javaParseTreeCodeGenerator
The parse tree code generator. |
| Fields inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
|---|
_codeGenerator, _codeStream, _eol, _INDENT1, _INDENT2, _parseTreeCodeGenerator, _portConversions, _referencedParameters |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
Expression(Expression actor)
Constructor method for the Expression helper. |
|
| Method Summary | |
|---|---|
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 |
getSharedCode()
Get shared code. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JavaParseTreeCodeGenerator _javaParseTreeCodeGenerator
| Constructor Detail |
|---|
public Expression(Expression actor)
actor - The associated actor.| Method Detail |
|---|
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 CodeGeneratorHelperIllegalActionException - 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 interface ComponentCodeGeneratorgenerateInitializeCode in class CodeGeneratorHelperIllegalActionException - 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 interface ActorCodeGeneratorgeneratePreinitializeCode in class CodeGeneratorHelperIllegalActionException - 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 interface ActorCodeGeneratorgetSharedCode in class CodeGeneratorHelperIllegalActionException - 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 interface ComponentCodeGeneratorgenerateWrapupCode in class CodeGeneratorHelperIllegalActionException - If the code stream encounters an
error in processing the specified code block(s).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||