public class TransformationEvaluator extends PtalonEvaluator
Red (tfeng) |
Red (tfeng) |
AbstractPtalonEvaluator.IfTree, AbstractPtalonEvaluator.PtalonExpressionScope
_actor, _currentIfTree, _imports, _scope, _transparentRelations
Constructor and Description |
---|
TransformationEvaluator(PtalonActor actor)
Construct transformation evaluator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_processAttributes(NamedObj object)
Process an attribute.
|
void |
enterTransformation(boolean incremental)
Enter the transformation.
|
void |
exitTransformation()
Exit the transformation.
|
void |
negateObject(java.lang.String name)
Negate an object.
|
void |
optionalObject(java.lang.String name)
Mark a NamedObj as optional.
|
void |
preserveObject(java.lang.String name)
Preserve an object.
|
void |
removeObject(java.lang.String name)
Remove an object.
|
void |
startAtTop()
Prepare the compiler to start at the outermost scope of the Ptalon
program during run time.
|
addActor, addParameterAssign, addPortAssign, addPortAssign, addSymbol, addUnknownLeftSide, enterActorDeclaration, exitActorDeclaration, isActorReady, popActorDeclaration, pushActorDeclaration, setActorParameter, setActorSymbol, setDanglingPortsOkay
_getIndentPrefix, _getTimesEntered, _getType, _getTypeForScope, _inNewWhileIteration, _isPreservingTransformation, _resetParameters, _setPreservingTransformation, addActorParameter, addActorParameter, addInPort, addOutPort, addParameter, addParameter, addPort, addRelation, addTransparentRelation, assignInternalParameters, enterForScope, enterIfScope, evaluateBoolean, evaluateExpression, evaluateForScope, evaluateString, exitForScope, exitIfScope, getMappedName, hasUnassignedParameters, inScope, isCreated, isForReady, isIfReady, isReady, popForStatement, popIfStatement, pushForStatement, pushIfStatement, setActiveBranch, setCurrentBranch, setNextExpression
public TransformationEvaluator(PtalonActor actor)
actor
- the Ptalon actorpublic void enterTransformation(boolean incremental) throws PtalonRuntimeException
enterTransformation
in class AbstractPtalonEvaluator
incremental
- True if this is an incremental transformation.PtalonRuntimeException
- Not thrown in this baseclass.public void exitTransformation() throws PtalonRuntimeException
exitTransformation
in class AbstractPtalonEvaluator
PtalonRuntimeException
- Not thrown in this baseclass.public void negateObject(java.lang.String name) throws PtalonRuntimeException
NegationAttribute
.negateObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be negated.PtalonRuntimeException
- If we are in a transformation
or if the object has already been negated.public void optionalObject(java.lang.String name) throws PtalonRuntimeException
OptionAttribute
.optionalObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be marked optional.PtalonRuntimeException
- If we are in a transformation or if the object has
already been marked optionalpublic void preserveObject(java.lang.String name) throws PtalonRuntimeException
OptionAttribute
.preserveObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be preservedPtalonRuntimeException
- If we are in a transformation or if the object has
already been preserved.public void removeObject(java.lang.String name) throws PtalonRuntimeException
removeObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be removed.PtalonRuntimeException
- If we are in a transformation or if the object has
already been marked as removed.public void startAtTop()
startAtTop
in class PtalonEvaluator
protected void _processAttributes(NamedObj object) throws PtalonRuntimeException
_processAttributes
in class AbstractPtalonEvaluator
object
- The NamedObj to be processed.PtalonRuntimeException
- If thrown while processing
the attribute.