Package ptolemy.data.expr
Class MoMLUtilities
- java.lang.Object
-
- ptolemy.data.expr.MoMLUtilities
-
public class MoMLUtilities extends java.lang.Object
This class provides access to the Ptolemy MoML parser in ptolemy.moml by using reflection.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Christopher Brooks. Based on ParseMoML by Edward A. Lee. Based on MatlabUtilities by Steve Neuendorffer and Zoltan Kemenczy (Research in Motion Ltd.)
- See Also:
ParseTreeEvaluator
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description MoMLUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActorToken
parseMoML(java.lang.String moml)
Parse the string provided and return the result wrapped in a token.
-
-
-
Method Detail
-
parseMoML
public static ActorToken parseMoML(java.lang.String moml) throws java.lang.Exception
Parse the string provided and return the result wrapped in a token.- Parameters:
moml
- The MoML string.- Returns:
- The result of parsing the MoML.
- Throws:
java.lang.Exception
- If the MoML is invalid or the results is not an instance of Entity.
-
-