![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Custom validation checks for Lingua Franca programs. More...
Inherits org.lflang.validation.BaseLFValidator.
Public Member Functions | |
| void | checkAction (Action action) |
| void | checkAssignment (Assignment assignment) |
| void | checkAttributes (Attribute attr) |
| Check whether an attribute is supported and the validity of the attribute. | |
| void | checkBracedExpression (BracedListExpression expr) |
| void | checkBracketExpression (BracketListExpression expr) |
| void | checkCEnclaveNotInMode (Reactor reactor) |
| void | checkCEnclaves (Instantiation inst) |
| void | checkConnection (Connection connection) |
| void | checkDeadline (Deadline deadline) |
| void | checkEnclaveOnWindows (Instantiation inst) |
| void | checkHost (Host host) |
| void | checkImport (Import imp) |
| void | checkImportedReactor (ImportedReactor reactor) |
| void | checkInitializer (Initializer init) |
| void | checkInitialMode (Reactor reactor) |
| void | checkInput (Input input) |
| void | checkInstantiation (Instantiation instantiation) |
| void | checkMissingStateResetInMode (Reactor reactor) |
| void | checkModeActionNamespace (Reactor reactor) |
| void | checkModeInstanceNamespace (Reactor reactor) |
| void | checkModel (Model model) |
| void | checkModeStateNamespace (Reactor reactor) |
| void | checkModeTimerNamespace (Reactor reactor) |
| void | checkOutput (Output output) |
| void | checkParameter (Parameter param) |
| void | checkParenthesisExpression (ParenthesisListExpression expr) |
| void | checkPreamble (Preamble preamble) |
| void | checkReaction (Reaction reaction) |
| void | checkReactor (Reactor reactor) throws IOException |
| void | checkReactorIconAttribute (Reactor reactor) |
| void | checkReactorName (String name) throws IOException |
| void | checkSerializer (Serializer serializer) |
| Check if the requested serialization is supported. | |
| void | checkState (StateVar stateVar) |
| void | checkStateResetWithoutInitialValue (StateVar state) |
| void | checkTargetDecl (TargetDecl target) throws IOException |
| void | checkTargetProperties (KeyValuePairs targetProperties) |
| Check for consistency of the target properties, which are defined as KeyValuePairs. | |
| void | checkTime (Time time) |
| void | checkTimer (Timer timer) |
| void | checkType (Type type) |
| void | checkUnspecifiedTransitionType (Reaction reaction) |
| void | checkVarRef (VarRef varRef) |
| void | checkWidthSpec (WidthSpec widthSpec) |
| ValidatorMessageReporter | getErrorReporter () |
| Return the error reporter for this validator. | |
| ValidationMessageAcceptor | getMessageAcceptor () |
| Implementation required by xtext to report validation errors. | |
| void | typeCheck (Initializer init, InferredType type, EStructuralFeature feature) |
| Check that the initializer is compatible with the type. | |
| void | updateModelInfo (Model model) |
Protected Member Functions | |
| void | error (java.lang.String message, org.eclipse.emf.ecore.EStructuralFeature feature) |
| Generate an error message for an AST node. | |
Package Functions | |
| private< T extends TypedVariable > void | checkConflict (EList< T > superVars, EList< T > sameKind, List< Variable > allOwn, HashSet< Variable > conflicts) |
| For each input, report a conflict if: 1) the input exists and the type doesn't match; or 2) the input has a name clash with variable that is not an input. | |
Custom validation checks for Lingua Franca programs.
Also see: ...
| void org.lflang.validation.LFValidator.checkAction | ( | Action | action | ) |
| void org.lflang.validation.LFValidator.checkAssignment | ( | Assignment | assignment | ) |
| void org.lflang.validation.LFValidator.checkAttributes | ( | Attribute | attr | ) |
Check whether an attribute is supported and the validity of the attribute.
| attr | The attribute being checked |
| void org.lflang.validation.LFValidator.checkBracedExpression | ( | BracedListExpression | expr | ) |
| void org.lflang.validation.LFValidator.checkBracketExpression | ( | BracketListExpression | expr | ) |
| void org.lflang.validation.LFValidator.checkCEnclaveNotInMode | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkCEnclaves | ( | Instantiation | inst | ) |
|
package |
For each input, report a conflict if: 1) the input exists and the type doesn't match; or 2) the input has a name clash with variable that is not an input.
| superVars | List of typed variables of a particular kind (i.e., inputs, outputs, or actions), found in a super class. |
| sameKind | Typed variables of the same kind, found in the subclass. |
| allOwn | Accumulator of non-conflicting variables incorporated in the subclass. |
| conflicts | Set of variables that are in conflict, to be used by this function to report conflicts. |
| void org.lflang.validation.LFValidator.checkConnection | ( | Connection | connection | ) |
| void org.lflang.validation.LFValidator.checkDeadline | ( | Deadline | deadline | ) |
| void org.lflang.validation.LFValidator.checkEnclaveOnWindows | ( | Instantiation | inst | ) |
| void org.lflang.validation.LFValidator.checkHost | ( | Host | host | ) |
| void org.lflang.validation.LFValidator.checkImport | ( | Import | imp | ) |
| void org.lflang.validation.LFValidator.checkImportedReactor | ( | ImportedReactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkInitializer | ( | Initializer | init | ) |
| void org.lflang.validation.LFValidator.checkInitialMode | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkInput | ( | Input | input | ) |
| void org.lflang.validation.LFValidator.checkInstantiation | ( | Instantiation | instantiation | ) |
| void org.lflang.validation.LFValidator.checkMissingStateResetInMode | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkModeActionNamespace | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkModeInstanceNamespace | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkModel | ( | Model | model | ) |
| void org.lflang.validation.LFValidator.checkModeStateNamespace | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkModeTimerNamespace | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkOutput | ( | Output | output | ) |
| void org.lflang.validation.LFValidator.checkParameter | ( | Parameter | param | ) |
| void org.lflang.validation.LFValidator.checkParenthesisExpression | ( | ParenthesisListExpression | expr | ) |
| void org.lflang.validation.LFValidator.checkPreamble | ( | Preamble | preamble | ) |
| void org.lflang.validation.LFValidator.checkReaction | ( | Reaction | reaction | ) |
| void org.lflang.validation.LFValidator.checkReactor | ( | Reactor | reactor | ) | throws IOException |
| void org.lflang.validation.LFValidator.checkReactorIconAttribute | ( | Reactor | reactor | ) |
| void org.lflang.validation.LFValidator.checkReactorName | ( | String | name | ) | throws IOException |
| void org.lflang.validation.LFValidator.checkSerializer | ( | Serializer | serializer | ) |
Check if the requested serialization is supported.
| void org.lflang.validation.LFValidator.checkState | ( | StateVar | stateVar | ) |
| void org.lflang.validation.LFValidator.checkStateResetWithoutInitialValue | ( | StateVar | state | ) |
| void org.lflang.validation.LFValidator.checkTargetDecl | ( | TargetDecl | target | ) | throws IOException |
| void org.lflang.validation.LFValidator.checkTargetProperties | ( | KeyValuePairs | targetProperties | ) |
Check for consistency of the target properties, which are defined as KeyValuePairs.
| targetProperties | The target properties defined in the current Lingua Franca program. |
|
inherited |
| void org.lflang.validation.LFValidator.checkTimer | ( | Timer | timer | ) |
| void org.lflang.validation.LFValidator.checkType | ( | Type | type | ) |
| void org.lflang.validation.LFValidator.checkUnspecifiedTransitionType | ( | Reaction | reaction | ) |
| void org.lflang.validation.LFValidator.checkVarRef | ( | VarRef | varRef | ) |
| void org.lflang.validation.LFValidator.checkWidthSpec | ( | WidthSpec | widthSpec | ) |
|
protected |
Generate an error message for an AST node.
| ValidatorMessageReporter org.lflang.validation.LFValidator.getErrorReporter | ( | ) |
Return the error reporter for this validator.
| ValidationMessageAcceptor org.lflang.validation.LFValidator.getMessageAcceptor | ( | ) |
Implementation required by xtext to report validation errors.
| void org.lflang.validation.LFValidator.typeCheck | ( | Initializer | init, |
| InferredType | type, | ||
| EStructuralFeature | feature ) |
Check that the initializer is compatible with the type.
Note that if the type is inferred it will necessarily be compatible so this method is not harmful.
| void org.lflang.validation.LFValidator.updateModelInfo | ( | Model | model | ) |