Modifier and Type | Method and Description |
---|---|
CGValuedElement |
AS2CGVisitor.visitExpressionInOCL(ExpressionInOCL query) |
Modifier and Type | Method and Description |
---|---|
LibraryOperation |
CodeGenHelper.loadClass(ExpressionInOCL query,
File targetFolder,
String packageName,
String className,
boolean saveSource)
Return the <%...%> escaped name for a type.
|
Modifier and Type | Method and Description |
---|---|
LibraryOperation |
JavaGenModelCodeGenHelper.loadClass(ExpressionInOCL query,
File targetFolder,
String packageName,
String className,
boolean saveSource) |
Modifier and Type | Method and Description |
---|---|
static String |
JUnitCodeGenerator.generateClassFile(EnvironmentFactoryInternal environmentFactory,
ExpressionInOCL query,
String packageName,
String className) |
CGValuedElement |
JUnitAS2CGVisitor.visitExpressionInOCL(ExpressionInOCL element) |
Constructor and Description |
---|
JUnitCG2JavaClassVisitor(JUnitCodeGenerator codeGenerator,
ExpressionInOCL expInOcl,
Iterable<CGValuedElement> sortedGlobals) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
OCLEvaluationContext.getExpressionObject() |
Constructor and Description |
---|
OCLEvaluationContext(ExpressionInOCL expressionObject,
EObject contextObject) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
OCLValidationDelegate.getExpressionInOCL(MetamodelManager metamodelManager,
Constraint constraint) |
ExpressionInOCL |
OCLInvocationDelegate.getExpressionInOCL(MetamodelManager metamodelManager,
Constraint constraint) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
OCLVMExecutor.getDebuggable() |
Constructor and Description |
---|
OCLVMExecutor(IVMContext vmContext,
ExpressionInOCL expressionInOCL,
EObject context) |
OCLVMRootEvaluationEnvironment(VMExecutor vmExecutor,
ExpressionInOCL executableObject,
long id) |
Modifier and Type | Method and Description |
---|---|
IStepper |
OCLStepperVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
PivotFactory.createExpressionInOCL()
Returns a new object of class 'Expression In OCL'.
|
Modifier and Type | Method and Description |
---|---|
static OCLExpression |
AbstractConstraintEvaluator.getConstraintExpression(ExpressionInOCL query)
Return the expression to be evaluated for a constraintSpecification, which is the constraintSpecification.bodyExpression
unless that is a status TuplePart PropertyCallExp in which case it is the source of the TuplePart PropertyCallExp enabling the
evaluation to compute the enriched Tuple of invariant results.
|
Constructor and Description |
---|
AbstractConstraintEvaluator(ExpressionInOCL query)
Construct an helper for the evaluation of an expression
|
Modifier and Type | Class and Description |
---|---|
class |
ExpressionInOCLImpl
An implementation of the model object 'Expression In Ocl'.
|
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
PivotFactoryImpl.createExpressionInOCL() |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
AbstractParserContext.getExpression(CSResource resource) |
ExpressionInOCL |
AbstractParserContext.parse(EObject owner,
String expression) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractParserContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
OperationContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
EObjectContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
EInvocationContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
EClassContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
ClassContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression) |
void |
AbstractBase2ASConversion.setClassifierContext(ExpressionInOCL pivotSpecification,
Type contextType) |
void |
Base2ASConversion.setClassifierContext(ExpressionInOCL pivotSpecification,
Type contextType) |
void |
AbstractBase2ASConversion.setContextVariable(ExpressionInOCL pivotSpecification,
String selfVariableName,
Type contextType,
Type contextInstance) |
void |
Base2ASConversion.setContextVariable(ExpressionInOCL pivotSpecification,
String selfVariableName,
Type contextType,
Type contextInstance) |
void |
AbstractBase2ASConversion.setOperationContext(ExpressionInOCL pivotSpecification,
Operation contextOperation,
String resultName) |
void |
AbstractBase2ASConversion.setParameterVariables(ExpressionInOCL pivotSpecification,
List<Parameter> parameters) |
void |
Base2ASConversion.setParameterVariables(ExpressionInOCL pivotSpecification,
List<Parameter> parameters) |
void |
AbstractBase2ASConversion.setParameterVariables(ExpressionInOCL pivotSpecification,
Map<String,Type> parameters) |
void |
Base2ASConversion.setParameterVariables(ExpressionInOCL pivotSpecification,
Map<String,Type> parameters) |
void |
AbstractBase2ASConversion.setPropertyContext(ExpressionInOCL pivotSpecification,
Property contextProperty) |
void |
AbstractBase2ASConversion.setResultVariable(ExpressionInOCL pivotSpecification,
Operation contextOperation,
String resultName) |
void |
Base2ASConversion.setResultVariable(ExpressionInOCL pivotSpecification,
Operation contextOperation,
String resultName) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
ValidationBehavior.getQueryOrThrow(MetamodelManager metamodelManager,
Constraint constraint)
Return the operation body associated with operation, if necessary using
ocl to create the relevant parsing environment for a textual
definition. |
ExpressionInOCL |
OCLInvocationDelegate.getQueryOrThrow(MetamodelManager metamodelManager,
Constraint constraint) |
ExpressionInOCL |
InvocationBehavior.getQueryOrThrow(MetamodelManager metamodelManager,
Operation operation)
Return the operation body associated with operation, if necessary using
ocl to create the relevant parsing environment for a textual
definition. |
ExpressionInOCL |
SettingBehavior.getQueryOrThrow(MetamodelManager metamodelManager,
Property property)
Return the feature body associated with structuralFeature, if necessary using ocl to
create the relevant parsing environment for a textual definition..
|
Constructor and Description |
---|
EObjectOperation(Operation operation,
EOperation eFeature,
ExpressionInOCL specification) |
EObjectProperty(EStructuralFeature eFeature,
ExpressionInOCL specification) |
Modifier and Type | Method and Description |
---|---|
Object |
TracingEvaluationVisitor.visitExpressionInOCL(ExpressionInOCL expression) |
Object |
BasicEvaluationVisitor.visitExpressionInOCL(ExpressionInOCL expression) |
Object |
AbstractEvaluationVisitorDecorator.visitExpressionInOCL(ExpressionInOCL expression)
Delegates to my decorated visitor.
|
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
OCLHelperImpl.createBodyCondition(String expression) |
ExpressionInOCL |
OCLHelperImpl.createDerivedValueExpression(String expression) |
ExpressionInOCL |
OCLHelperImpl.createInvariant(String expression) |
ExpressionInOCL |
OCLHelperImpl.createPostcondition(String expression) |
ExpressionInOCL |
OCLHelperImpl.createPrecondition(String expression) |
ExpressionInOCL |
OCLHelperImpl.createQuery(String expression) |
Constructor and Description |
---|
QueryImpl(OCL ocl,
ExpressionInOCL query) |
Modifier and Type | Method and Description |
---|---|
void |
ExpressionInOCLLabelGenerator.buildLabelFor(ILabelGenerator.Builder labelBuilder,
ExpressionInOCL object) |
Constructor and Description |
---|
ConstrainedOperation(ExpressionInOCL expressionInOCL) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
PivotMetamodelManager.getBodyExpression(Operation operation) |
ExpressionInOCL |
PivotMetamodelManager.getDefaultExpression(Property property) |
ExpressionInOCL |
PivotMetamodelManager.parseSpecification(LanguageExpression specification)
Deprecated.
use EnvironmentFactoryInternalExtension.parseSpecification()
|
Modifier and Type | Method and Description |
---|---|
Object |
PrettyPrintVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Object |
EssentialOCLPrettyPrintVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Constructor and Description |
---|
ConstraintEvaluatorWithDiagnostics(ExpressionInOCL expression,
EObject eObject,
DiagnosticChain diagnostics,
EObject diagnosticEObject,
boolean mayUseNewLines) |
ConstraintEvaluatorWithoutDiagnostics(ExpressionInOCL expression) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
UML2ASUseSwitch.caseOpaqueExpression(org.eclipse.uml2.uml.OpaqueExpression umlExpression) |
ExpressionInOCL |
UML2AS.refreshOpaqueExpression(org.eclipse.uml2.uml.OpaqueExpression umlExpression) |
Constructor and Description |
---|
ConstraintEvaluatorWithDiagnostics(ExpressionInOCL expression,
EObject eObject,
DiagnosticChain diagnostics,
EObject diagnosticEObject,
boolean mayUseNewLines) |
ConstraintEvaluatorWithoutDiagnostics(ExpressionInOCL expression) |
Modifier and Type | Method and Description |
---|---|
T |
PivotSwitch.caseExpressionInOCL(ExpressionInOCL object)
Returns the result of interpreting the object as an instance of 'Expression In OCL'.
|
boolean |
PivotValidator.validateExpressionInOCL(ExpressionInOCL expressionInOCL,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
LookupEnvironment |
PivotUnqualifiedLookupVisitor.visitExpressionInOCL(ExpressionInOCL element_3)
visitExpressionInOCL(element : ExpressionInOCL[1]) : lookup::LookupEnvironment[?]
_'null' : lookup::LookupEnvironment[?]
|
R |
Visitor.visitExpressionInOCL(ExpressionInOCL object) |
R |
AbstractWrappingVisitor.visitExpressionInOCL(ExpressionInOCL object) |
R |
AbstractNullVisitor.visitExpressionInOCL(ExpressionInOCL object)
Deprecated.
|
R |
AbstractMergedVisitor.visitExpressionInOCL(ExpressionInOCL object) |
R |
AbstractExtendingVisitor.visitExpressionInOCL(ExpressionInOCL object) |
R |
AbstractDelegatingVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Modifier and Type | Method and Description |
---|---|
ExpressionInOCL |
OCLHelper.createBodyCondition(String expression)
Creates an operation body.
|
ExpressionInOCL |
OCLHelper.createDerivedValueExpression(String expression)
Creates a property derived value expression.
|
static ExpressionInOCL |
PivotUtil.createExpressionInOCL(Variable asContextVariable,
OCLExpression asExpression,
Variable... asParameterVariables) |
static ExpressionInOCL |
PivotUtil.createExpressionInOCLError(String string) |
ExpressionInOCL |
OCL.createInvariant(EObject contextElement,
String oclExpression)
Parse oclExpression using selfType as the type of each run-time self object.
|
ExpressionInOCL |
OCLHelper.createInvariant(String expression)
Creates an invariant constraint in the current classifier context.
|
ExpressionInOCL |
OCL.createPostcondition(EOperation contextOperation,
String oclExpression) |
ExpressionInOCL |
OCLHelper.createPostcondition(String expression)
Creates an operation postcondition constraint.
|
ExpressionInOCL |
OCLHelper.createPrecondition(String expression)
Creates an operation precondition constraint.
|
ExpressionInOCL |
OCL.createQuery(EObject contextElement,
String oclExpression) |
ExpressionInOCL |
OCLHelper.createQuery(String expression)
Creates a query expression in the current classifier context.
|
static ExpressionInOCL |
PivotUtil.getContainingExpressionInOCL(Element element) |
ExpressionInOCL |
ParserContext.getExpression(CSResource resource)
Extract an Abstract Syntax ExpressionInOCL fronm a Concrete Syntax resource.
|
ExpressionInOCL |
OCL.getSpecification(Constraint constraint)
Return the Constraint specification as an ExpressionInOCL, parsing any OpaqueExpression
that may be encountered.
|
ExpressionInOCL |
ParserContext.parse(EObject owner,
String expression)
Create an Abstract Syntax ExpressionInOCL containing the parsed expression on behalf of a potential owner.
|
ExpressionInOCL |
EnvironmentFactory.EnvironmentFactoryExtension2.parseSpecification(LanguageExpression specification)
Return the compiled query for a specification resolving a String body into a non-null bodyExpression.
|
ExpressionInOCL |
OCL.parseSpecification(LanguageExpression specification)
Convert the specification of an OCL expression from textual CS form to parsed executable AS form.
|
ExpressionInOCL |
AbstractEnvironmentFactory.parseSpecification(LanguageExpression specification)
Return the compiled query for a specification resolving a String body into a non-null bodyExpression.
|
ExpressionInOCL |
MetamodelManager.parseSpecification(LanguageExpression specification)
Deprecated.
use PivotHelper.parseSpecification()
|
ExpressionInOCL |
OCL.parseSpecification(Object unusedObject,
LanguageExpression specification)
Deprecated.
use parseSpecification(specification)
|
Modifier and Type | Method and Description |
---|---|
boolean |
OCL.check(Object context,
ExpressionInOCL specification)
Checks whether a constraint, specified simply as an OCL expression, is
satisfied by an object.
|
static void |
PivotUtil.checkExpression(ExpressionInOCL expressionInOCL)
Check that expressionInOCL was successfully compiled.
|
EvaluationVisitor |
OCL.createEvaluationVisitor(Object context,
ExpressionInOCL expression)
Creates a new evaluation visitor, for the evaluation of an OCL expression in a context.
|
EvaluationVisitor |
EnvironmentFactory.createEvaluationVisitor(Object context,
ExpressionInOCL expression,
ModelManager modelManager)
Creates a new evaluation visitor, for the evaluation of an OCL expression on a context using an environment and a modelManager.
|
EvaluationVisitor |
AbstractEnvironmentFactory.createEvaluationVisitor(Object context,
ExpressionInOCL expression,
ModelManager modelManager) |
static Operation |
PivotUtil.createOperation(String name,
ExpressionInOCL asExpressionInOCL) |
Query |
OCL.createQuery(ExpressionInOCL query)
Creates a new
Query encapsulating a query expression with the
current environment and extent map. |
Object |
OCL.evaluate(Object context,
ExpressionInOCL expression)
Evaluates a query expression on a context object (which is bound to the
self variable).
|
static OCLExpression |
PivotUtil.getOwnedBody(ExpressionInOCL asExpression) |
static VariableDeclaration |
PivotUtil.getOwnedContext(ExpressionInOCL asExpression) |
void |
ParserContext.initialize(Base2ASConversion conversion,
ExpressionInOCL expression)
Callback to initialize the ExpressionInOCL with the derived context such as
a contextvariable for the self type, parameter and result variables.
|
static Operation |
PivotUtil.initOperation(Operation asOperation,
ExpressionInOCL asExpressionInOCL) |
static void |
PivotUtil.setBody(ExpressionInOCL expressionInOCL,
OCLExpression oclExpression,
String stringExpression)
Define oclExpression as the bodyExpression of an expressionInOCL, and if non-null
also define stringExpression as the OCL-languaged body.
|
void |
PivotHelper.setContextVariable(ExpressionInOCL pivotSpecification,
String selfVariableName,
Type contextType,
Type contextInstance) |
String |
ToStringVisitor.visitExpressionInOCL(ExpressionInOCL expression)
Renders an ExpressionInOCL with its context variables and body.
|
Object |
AS2MonikerVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Modifier and Type | Method and Description |
---|---|
ElementCS |
BaseDeclarationVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Modifier and Type | Method and Description |
---|---|
void |
CS2ASConversion.refreshContextVariable(ElementCS csElement,
ExpressionInOCL pivotSpecification) |
void |
CS2ASConversion.setContextVariable(ExpressionInOCL pivotSpecification,
String selfVariableName,
Type contextType,
Type contextInstance)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ExpressionInOCL |
ElementUtil.getFirstQuery(PivotMetamodelManager metamodelManager,
BaseCSResource csResource)
Extract the first embedded ExpressionInOCL.
|
Modifier and Type | Method and Description |
---|---|
EObject |
CompleteOCLSplitter.Separator.caseExpressionInOCL(ExpressionInOCL object) |
ElementCS |
CompleteOCLDeclarationVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Modifier and Type | Method and Description |
---|---|
ElementCS |
EssentialOCLDeclarationVisitor.visitExpressionInOCL(ExpressionInOCL object) |
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.