Package | Description |
---|---|
org.eclipse.ocl.lpg | |
org.eclipse.ocl.parser | |
org.eclipse.ocl.util |
Miscellaneous utilities in support of the OCL parser and environment
implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractProblemHandler
Partial implementation of the
ProblemHandler API, useful for
subclasses to selectively override behaviour. |
class |
StringProblemHandler
A
StringProblemHandler counts and accumulates all problem reports, so that
all problems may be processed on completion of semantic/syntactic/lexical analysis. |
Modifier and Type | Method and Description |
---|---|
protected ProblemHandler |
AbstractBasicEnvironment.createDefaultProblemHandler(AbstractParser parser) |
ProblemHandler |
AbstractBasicEnvironment.getProblemHandler() |
ProblemHandler |
BasicEnvironment.getProblemHandler()
Obtains a problem handler to service lexer, parser, analyzer, validator, ...
|
ProblemHandler |
AbstractBasicEnvironment.setProblemHandler(ProblemHandler newProblemHandler) |
ProblemHandler |
BasicEnvironment.setProblemHandler(ProblemHandler problemHandler)
Define the handler for any problem reports.
|
Modifier and Type | Method and Description |
---|---|
ProblemHandler |
AbstractBasicEnvironment.setProblemHandler(ProblemHandler newProblemHandler) |
ProblemHandler |
BasicEnvironment.setProblemHandler(ProblemHandler problemHandler)
Define the handler for any problem reports.
|
Modifier and Type | Class and Description |
---|---|
class |
OCLProblemHandler
The
OCLProblemHandler accumulates a DiagnosticChain of
problems. |
Modifier and Type | Class and Description |
---|---|
class |
ProblemHandlerWrapper
A wrapper for
ProblemHandler s, convenient for subclassing to
decorate/intercept an existing problem handler instance. |
static class |
ProblemHandlerWrapper.Tee
Like the UNIX tool tee, a Tee forks problem handling
in two directions, that is, to two other problem-handler instances.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.Diagnostic |
OCLUtil.checkForErrors(ProblemHandler problemHandler)
Checks whether the specified problem handler has any
diagnostics of error severity or worse and, if so, throws a semantic
exception encapsulating these diagnostics.
|
static org.eclipse.emf.common.util.Diagnostic |
OCLUtil.checkForErrorsOrWarnings(ProblemHandler problemHandler)
Checks whether the specified problem handler has any
diagnostics of warning severity or worse and, if so, throws a semantic
exception encapsulating these diagnostics.
|
Constructor and Description |
---|
ProblemHandlerWrapper(ProblemHandler delegate)
Initializes me with the problem-handler to which I delegate.
|
Tee(ProblemHandler delegate,
ProblemHandler tee)
Initializes me with the two problem-handler instances to which I
delegate.
|