Class StoExParserImpl
- java.lang.Object
-
- org.palladiosimulator.commons.stoex.api.impl.StoExParserImpl
-
- All Implemented Interfaces:
StoExParser
public class StoExParserImpl extends Object implements StoExParser
Wrapper for the Xtext StoEx parser.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.palladiosimulator.commons.stoex.api.StoExParser
StoExParser.SyntaxErrorException
-
-
Constructor Summary
Constructors Constructor Description StoExParserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(StoExToolProvider toolProvider)
Initializes the instance by the tool provider.Expression
parse(String serializedStoEx)
Parse a serialized StoEx into anExpression
.
-
-
-
Method Detail
-
init
public void init(StoExToolProvider toolProvider)
Initializes the instance by the tool provider. After a call to this method, the implementation is assumed to be fully initialized.- Parameters:
toolProvider
- The tool provider.
-
parse
public Expression parse(String serializedStoEx) throws StoExParser.SyntaxErrorException
Description copied from interface:StoExParser
Parse a serialized StoEx into anExpression
.- Specified by:
parse
in interfaceStoExParser
- Parameters:
serializedStoEx
- The serialized StoEx.- Returns:
- The parsed
Expression
instance. - Throws:
StoExParser.SyntaxErrorException
- thrown in case of a syntax error.
-
-