public interface ParserContext
| Modifier and Type | Method and Description |
|---|---|
BaseResource |
createBaseResource(java.lang.String expression)
Create a Concrete Syntax resource containing the parsed expression.
|
Type |
getClassContext()
Return the type of the self variable.
|
ExpressionInOCL |
getExpression(BaseResource resource)
Extract an Abstract Syntax ExpressionInOCL fronm a Concrete Syntax resource.
|
MetaModelManager |
getMetaModelManager()
Returbn the MetaModelManager in use.
|
void |
initialize(Base2PivotConversion conversion,
ExpressionInOCL expression)
Callback to initialize the ExpressionInOCL with the derived context such as
a contextvariable for the self type, parameter and result variables.
|
ExpressionInOCL |
parse(java.lang.String expression)
Create an Abstract Syntax ExpressionInOCL containing the parsed expression.
|
@NonNull BaseResource createBaseResource(@NonNull java.lang.String expression) throws java.io.IOException, ParserException
java.io.IOException - if resource loading failsParserException@Nullable Type getClassContext()
@Nullable ExpressionInOCL getExpression(@NonNull BaseResource resource) throws ParserException
ParserException - if parsing fails@NonNull MetaModelManager getMetaModelManager()
void initialize(@NonNull
Base2PivotConversion conversion,
@NonNull
ExpressionInOCL expression)
@NonNull ExpressionInOCL parse(@NonNull java.lang.String expression) throws ParserException
ParserException - if parsing fails