|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.expr.ModelScope
ptolemy.copernicus.java.DataUtilities.ActorCodeGenerationScope
An inner class used by the generateExpressionCode() method. This class creates the correct code to resolve identifier values when they are discovered in traversing the parse tree.
| Constructor Summary | |
DataUtilities.ActorCodeGenerationScope(Entity entity,
soot.SootClass entityClass,
java.util.Map nameToFieldOrLocal,
java.util.Map nameToType,
soot.jimple.JimpleBody body,
soot.Unit insertPoint)
|
|
| Method Summary | |
Token |
get(java.lang.String name)
Look up and return the value with the specified name in the scope. |
soot.Local |
getLocal(java.lang.String name)
Look up and return the type of the value with the specified name in the scope. |
Type |
getType(java.lang.String name)
Look up and return the type of the value with the specified name in the scope. |
InequalityTerm |
getTypeTerm(java.lang.String name)
Look up and return the type term for the specified name in the scope. |
java.util.Set |
identifierSet()
Return a list of names corresponding to the identifiers defined by this scope. |
| Methods inherited from class ptolemy.data.expr.ModelScope |
getAllScopedVariableNames, getScopedVariable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataUtilities.ActorCodeGenerationScope(Entity entity,
soot.SootClass entityClass,
java.util.Map nameToFieldOrLocal,
java.util.Map nameToType,
soot.jimple.JimpleBody body,
soot.Unit insertPoint)
| Method Detail |
public Token get(java.lang.String name)
throws IllegalActionException
ParserScope
get in interface ParserScopeIllegalActionException - If a value in the scope
exists with the given name, but cannot be evaluated.
public soot.Local getLocal(java.lang.String name)
throws IllegalActionException
CodeGenerationScope
getLocal in interface CodeGenerationScopeIllegalActionException - If a value in the scope
exists with the given name, but cannot be evaluated.
public Type getType(java.lang.String name)
throws IllegalActionException
ParserScope
getType in interface ParserScopeIllegalActionException - If a value in the scope
exists with the given name, but cannot be evaluated.
public InequalityTerm getTypeTerm(java.lang.String name)
throws IllegalActionException
ParserScope
getTypeTerm in interface ParserScopeIllegalActionException - If a value in the scope
exists with the given name, but cannot be evaluated.public java.util.Set identifierSet()
ParserScope
identifierSet in interface ParserScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||