|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.moml.MoMLVariableChecker
public class MoMLVariableChecker
Check that all the variables are defined in a piece of MoML.
| Red (cxh) |
| Red (cxh) |
| Field Summary | |
|---|---|
private Variable |
_previousNode
The previous node for which we searched. |
private java.io.StringWriter |
_variableBuffer
The moml of any missing variables we have found thus far. |
| Constructor Summary | |
|---|---|
MoMLVariableChecker()
|
|
| Method Summary | |
|---|---|
private boolean |
_findMissingClass(MissingClassException exception,
NamedObj container,
TypedCompositeActor parsedContainer)
Given a MissingClassException, find missing classes. |
private boolean |
_findUndefinedConstantsOrIdentifiers(IllegalActionException exception,
NamedObj container,
TypedCompositeActor parsedContainer)
Given an UndefinedConstantOrIdentifierException, find missing variables. |
private boolean |
_findUndefinedConstantsOrIdentifiers(java.lang.String variableName,
java.lang.String nodeName,
NamedObj container,
TypedCompositeActor parsedContainer)
|
java.lang.String |
checkCopy(java.lang.String momlToBeChecked,
NamedObj container)
Check for problems in the moml to be copied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Variable _previousNode
private java.io.StringWriter _variableBuffer
| Constructor Detail |
|---|
public MoMLVariableChecker()
| Method Detail |
|---|
public java.lang.String checkCopy(java.lang.String momlToBeChecked,
NamedObj container)
throws IllegalActionException
momlToBeChecked - The MoML string to be checked.container - The container in which the string is to be checked.
IllegalActionException - If there is a problem parsing
the string, or validating a variable.
private boolean _findMissingClass(MissingClassException exception,
NamedObj container,
TypedCompositeActor parsedContainer)
private boolean _findUndefinedConstantsOrIdentifiers(IllegalActionException exception,
NamedObj container,
TypedCompositeActor parsedContainer)
throws IllegalActionException
IllegalActionException
private boolean _findUndefinedConstantsOrIdentifiers(java.lang.String variableName,
java.lang.String nodeName,
NamedObj container,
TypedCompositeActor parsedContainer)
throws IllegalActionException
IllegalActionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||