| Package | Description |
|---|---|
| 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 |
|---|---|
static ConstraintKind |
ConstraintKind.valueOf(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,
String expression)
Creates a constraint of the specified kind, by parsing the given
expression.
|
List<Choice> |
OCLHelper.getSyntaxHelp(ConstraintKind constraintType,
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.
|
List<Choice> |
OCLSyntaxHelper.getSyntaxHelp(ConstraintKind constraintType,
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,
String txt,
int position) |
protected List<Choice> |
OCLSyntaxHelper.getChoices(OCLExpression<C> expression,
ConstraintKind constraintType)
returns the syntax help choices applicable for the passed OCLExpression
|
List<Choice> |
OCLSyntaxHelper.getSyntaxHelp(ConstraintKind constraintType,
String txt)
Gets syntax help choices for the specified
context
classifier or operation. |
| Constructor and Description |
|---|
ASTVisitor(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.
|
Copyright © 2015 Open eHealth Foundation. All rights reserved.