Package | Description |
---|---|
org.eclipse.ocl.ecore.internal.helper | |
org.eclipse.ocl.examples.interpreter.console | |
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.internal.helper | |
org.eclipse.ocl.parser |
Modifier and Type | Method and Description |
---|---|
protected OCLSyntaxHelper.ASTVisitor |
OCLSyntaxHelper.createASTVisitor(ConstraintKind constraintType,
java.lang.String txt,
int position) |
Modifier and Type | Method and Description |
---|---|
<C,O,P> ConstraintKind |
ModelingLevel.setContext(OCLHelper<C,O,P,?> helper,
org.eclipse.emf.ecore.EObject element,
IOCLFactory<C> factory)
Set the context of the specified OCL helper to the given element (in the
ModelingLevel.M1 case) or its metaclass (ModelingLevel.M2 case). |
Modifier and Type | Method and Description |
---|---|
static ConstraintKind |
ConstraintKind.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintKind[] |
ConstraintKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
CT |
OCLHelper.createConstraint(ConstraintKind kind,
java.lang.String expression)
Creates a constraint of the specified kind, by parsing the given
expression.
|
java.util.List<Choice> |
OCLHelper.getSyntaxHelp(ConstraintKind constraintType,
java.lang.String txt)
Obtains syntax completion choices for the specified fragment of an OCL
expression given that it is intended for a constraint of the specified
kind.
|
java.util.List<Choice> |
OCLSyntaxHelper.getSyntaxHelp(ConstraintKind constraintType,
java.lang.String txt) |
Modifier and Type | Method and Description |
---|---|
protected ConstraintKind |
OCLSyntaxHelper.ASTVisitor.getConstraintType() |
Modifier and Type | Method and Description |
---|---|
protected OCLSyntaxHelper.ASTVisitor |
OCLSyntaxHelper.createASTVisitor(ConstraintKind constraintType,
java.lang.String txt,
int position) |
protected java.util.List<Choice> |
OCLSyntaxHelper.getChoices(OCLExpression<C> expression,
ConstraintKind constraintType)
returns the syntax help choices applicable for the passed OCLExpression
|
java.util.List<Choice> |
OCLSyntaxHelper.getSyntaxHelp(ConstraintKind constraintType,
java.lang.String txt)
Gets syntax help choices for the specified
context
classifier or operation. |
Constructor and Description |
---|
OCLSyntaxHelper.ASTVisitor(java.lang.String text,
int position,
ConstraintKind constraintType)
Initializes me with the position at which we are trying to find
completions and the text that we are completing.
|
Modifier and Type | Method and Description |
---|---|
OCLExpression<C> |
OCLAnalyzer.parseAST(OCLExpressionCS cst,
ConstraintKind constraintType)
Parses the specified concrete syntax model to an abstract syntax model.
|