|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.data.expr.AbstractParseTreeVisitor ptolemy.data.expr.ParseTreeTypeInference ptolemy.actor.gt.GTParameter.TypeInference
public static class GTParameter.TypeInference
The type inference used to infer types of names in the host model and in
the pattern, which is used in GTParameter.Evaluator
.
Red (tfeng) |
Yellow (tfeng) |
Field Summary | |
---|---|
private MatchResult |
_matchResult
The match result. |
private Pattern |
_pattern
The pattern. |
Fields inherited from class ptolemy.data.expr.ParseTreeTypeInference |
---|
_inferredChildType, _scope |
Constructor Summary | |
---|---|
GTParameter.TypeInference(Pattern pattern,
MatchResult matchResult)
Construct a type inference. |
Method Summary | |
---|---|
Type |
inferTypes(ASTPtRootNode node,
ParserScope scope)
Infer the type of the parse tree with the specified root node using the specified scope to resolve the values of variables. |
void |
visitMethodCallNode(ASTPtMethodCallNode node)
Set the type of the given node to be the return type of the method determined for the given node. |
Methods inherited from class ptolemy.data.expr.AbstractParseTreeVisitor |
---|
_unsupportedVisitException, _visitAllChildren, _visitChild, visitAssignmentNode, visitUnionConstructNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MatchResult _matchResult
private Pattern _pattern
Constructor Detail |
---|
public GTParameter.TypeInference(Pattern pattern, MatchResult matchResult)
pattern
- The pattern.matchResult
- The match result for the match between the
pattern and a host model.Method Detail |
---|
public Type inferTypes(ASTPtRootNode node, ParserScope scope) throws IllegalActionException
inferTypes
in class ParseTreeTypeInference
node
- The root of the parse tree.scope
- The scope for evaluation.
IllegalActionException
- If an error occurs during
evaluation.public void visitMethodCallNode(ASTPtMethodCallNode node) throws IllegalActionException
visitMethodCallNode
in interface ParseTreeVisitor
visitMethodCallNode
in class ParseTreeTypeInference
node
- The specified node.
IllegalActionException
- If an inference error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |