MetaDone
|
Public Member Functions | |
GrasylaContextEquation (ConcreteObjectGroup cog, GrasylaContext parent) | |
GrasylaContextEquation (ConcreteObjectGroup cog, GrasylaContext parent, MetaclassType mc, MetaModel metamodel) | |
final GrasylaEquation | getEquation () |
GrasylaEquation | findEquation () throws BadPreCondition |
MetaModel | getMetaModel () |
Protected Member Functions | |
String | getFunctorFromParent () |
MetaclassType | getForcedMetaclass () |
MetaModel | getForcedMetaModel () |
Private Attributes | |
GrasylaEquation | equation |
MetaclassType | metaclass |
MetaModel | metamodel |
A grasyla context that resolves an equation.
metadone.client.grasyla2.GrasylaContextEquation.GrasylaContextEquation | ( | ConcreteObjectGroup | cog, |
GrasylaContext | parent | ||
) |
Initializes this context.
cog | The concrete object group. |
parent | The parent or null |
References metadone.client.grasyla2.GrasylaContext.cog, and metadone.client.grasyla2.GrasylaContext.parent.
metadone.client.grasyla2.GrasylaContextEquation.GrasylaContextEquation | ( | ConcreteObjectGroup | cog, |
GrasylaContext | parent, | ||
MetaclassType | mc, | ||
MetaModel | metamodel | ||
) |
Initializes this context.
cog | The concrete object group. |
parent | The parent or null |
mc | The metaclass type or null |
metamodel | The changed/forced metamodel or null |
References metadone.client.grasyla2.GrasylaContextEquation.metaclass, and metadone.client.grasyla2.GrasylaContextEquation.metamodel.
GrasylaEquation metadone.client.grasyla2.GrasylaContextEquation.findEquation | ( | ) | throws BadPreCondition |
Finds the equation for this context.
null
BadPreCondition |
References metadone.client.grasyla2.SelectorBestEquation.findEquation(), metadone.client.grasyla2.GrasylaContextEquation.getForcedMetaclass(), metadone.client.grasyla2.GrasylaContextEquation.getForcedMetaModel(), metadone.client.grasyla2.GrasylaContext.getFunctor(), metadone.client.grasyla2.GrasylaContext.getObject(), and metadone.client.grasyla2.GrasylaContext.getSelector().
Referenced by metadone.client.grasyla2.GrasylaContextEquation.getEquation().
final GrasylaEquation metadone.client.grasyla2.GrasylaContextEquation.getEquation | ( | ) |
Gets the interpreted equation.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaContext.cog, metadone.client.grasyla2.GrasylaContextEquation.equation, metadone.client.grasyla2.GrasylaContextEquation.findEquation(), metadone.client.grasyla2.GrasylaContext.getFunctor(), metadone.client.display.ConcreteObjectGroup.getHead(), metadone.client.display.ConcreteObjectGroup.getMultiplicity(), metadone.client.grasyla2.GrasylaContext.getObject(), metadone.metabusiness.ConcreteObject.getTypes(), and metadone.client.grasyla2.GrasylaContext.logger.
MetaclassType metadone.client.grasyla2.GrasylaContextEquation.getForcedMetaclass | ( | ) | [protected] |
Gets the metaclass that MUST be used when looking for an equation.
null
References metadone.client.grasyla2.GrasylaContextEquation.metaclass.
Referenced by metadone.client.grasyla2.GrasylaContextEquation.findEquation().
MetaModel metadone.client.grasyla2.GrasylaContextEquation.getForcedMetaModel | ( | ) | [protected] |
Gets the metamodel when looking for an equation.
null
References metadone.client.grasyla2.GrasylaContextEquation.metamodel.
Referenced by metadone.client.grasyla2.GrasylaContextEquation.findEquation(), and metadone.client.grasyla2.GrasylaContextEquation.getMetaModel().
String metadone.client.grasyla2.GrasylaContextEquation.getFunctorFromParent | ( | ) | [protected] |
Gets the functor from the parent context.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
References metadone.client.grasyla2.GrasylaContextEquation.equation, metadone.metabusiness.syntax.grasyla.GrasylaEquationHeader.getFunctor(), and metadone.metabusiness.syntax.grasyla.GrasylaEquation.getLHS().
MetaModel metadone.client.grasyla2.GrasylaContextEquation.getMetaModel | ( | ) |
Gets the current metamodel.
Reimplemented from metadone.client.grasyla2.GrasylaContext.
Reimplemented in metadone.client.grasyla2.GrasylaRootContext.
References metadone.client.grasyla2.GrasylaContextEquation.getForcedMetaModel().
MetaclassType metadone.client.grasyla2.GrasylaContextEquation.metaclass [private] |