Package | Description |
---|---|
org.eclipse.ocl |
Definition of the extensible environment API for OCL parsing and evaluation.
|
org.eclipse.ocl.ecore |
Implementation of an OCL binding for the Ecore metamodel.
|
org.eclipse.ocl.helper |
Definition of the OCL Helper API for syntax completion support and a simplified
parsing model for embedded OCL constraints and expressions.
|
org.eclipse.ocl.uml |
Implementation of an OCL binding for the UML metamodel.
|
Modifier and Type | Class and Description |
---|---|
class |
AmbiguousLookupException
A specialized
LookupException denoting specifically that the
problem is multiple ambiguous results. |
class |
InvalidLookupException
A specialized
LookupException denoting specifically that the
problem is a single result that is invalid or otherwise unexpected. |
class |
LookupException
Exception indicating a semantic error in looking up a definition, typically
resulting from an ambiguity.
|
class |
SemanticException
Exception indicating a semantic error in parsing or validating OCL
expressions.
|
class |
SyntaxException
Exception indicating a syntax error in parsing OCL expressions.
|
Modifier and Type | Method and Description |
---|---|
char[] |
OCLInput.getContent()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
String |
OCLInput.getContentAsString()
The contents of the OCL document as a character array, suitable for
consumption by the OCL parser.
|
List<CT> |
OCL.parse(OCLInput input)
Parses an OCL document, returning the constraints parsed from it.
|
Modifier and Type | Method and Description |
---|---|
OCLExpression |
OCL.Helper.createQuery(String expression)
Creates a query expression in the current classifier context.
|
Modifier and Type | Method and Description |
---|---|
CT |
OCLHelper.createBodyCondition(String expression)
Creates an operation body.
|
CT |
OCLHelper.createConstraint(ConstraintKind kind,
String expression)
Creates a constraint of the specified kind, by parsing the given
expression.
|
CT |
OCLHelper.createDerivedValueExpression(String expression)
Creates a property derived value expression.
|
CT |
OCLHelper.createInitialValueExpression(String expression)
Creates a property initial value expression.
|
CT |
OCLHelper.createInvariant(String expression)
Creates an invariant constraint in the current classifier context.
|
CT |
OCLHelper.createPostcondition(String expression)
Creates an operation postcondition constraint.
|
CT |
OCLHelper.createPrecondition(String expression)
Creates an operation precondition constraint.
|
OCLExpression<C> |
OCLHelper.createQuery(String expression)
Creates a query expression in the current classifier context.
|
P |
OCLHelper.defineAttribute(String defExpression)
Defines an additional attribute in the context classifier,
for use in formulating OCL queries and constraints.
|
O |
OCLHelper.defineOperation(String defExpression)
Defines an additional operation in the context classifier,
for use in formulating OCL queries and constraints.
|
Modifier and Type | Method and Description |
---|---|
OCLExpression |
OCL.Helper.createQuery(String expression)
Creates a query expression in the current classifier context.
|
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.