|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.pivot.context.AbstractParserContext
public abstract class AbstractParserContext
Field Summary | |
---|---|
protected MetaModelManager |
metaModelManager
|
protected org.eclipse.emf.common.util.URI |
uri
|
Constructor Summary | |
---|---|
protected |
AbstractParserContext(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI uri)
|
Method Summary | |
---|---|
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. |
org.eclipse.emf.common.util.URI |
getURI()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final MetaModelManager metaModelManager
protected final org.eclipse.emf.common.util.URI uri
Constructor Detail |
---|
protected AbstractParserContext(MetaModelManager metaModelManager, org.eclipse.emf.common.util.URI uri)
Method Detail |
---|
public BaseResource createBaseResource(java.lang.String expression) throws java.io.IOException
ParserContext
createBaseResource
in interface ParserContext
java.io.IOException
- if resource loading failspublic Type getClassContext()
ParserContext
getClassContext
in interface ParserContext
public ExpressionInOCL getExpression(BaseResource resource) throws ParserException
ParserContext
getExpression
in interface ParserContext
ParserException
- if parsing failspublic MetaModelManager getMetaModelManager()
ParserContext
getMetaModelManager
in interface ParserContext
public org.eclipse.emf.common.util.URI getURI()
public void initialize(Base2PivotConversion conversion, ExpressionInOCL expression)
ParserContext
initialize
in interface ParserContext
public ExpressionInOCL parse(java.lang.String expression) throws ParserException
ParserContext
parse
in interface ParserContext
ParserException
- if parsing fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |