![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Switch class for converting AST nodes to their textual representation as it would appear in LF code. More...
Inherits LfSwitch< MalleableString >.
Package Functions | |
| private< T extends EObject > MalleableString | handler (T object, String name, Function< T, Expression > getTrigger, Function< T, Code > getCode) |
| private< E extends EObject > MalleableString | list (boolean nothingIfEmpty, EList< E > items) |
| private< E extends EObject > MalleableString | list (String separator, String prefix, String suffix, boolean nothingIfEmpty, boolean whitespaceRigid, boolean suffixSameLine, List< E > items) |
| Represent the given EList as a string. | |
Static Package Functions | |
| static Set< INode > | getAncestorComments (INode node) |
| Return all comments contained by ancestors of node that belong to said ancestors. | |
| static ICompositeNode | getNextCompositeSibling (INode node, Function< INode, INode > getNextSibling) |
| Return the next composite sibling of node, as given by sequential application of getNextSibling. | |
Switch class for converting AST nodes to their textual representation as it would appear in LF code.
| MalleableString org.lflang.ast.ToLf.caseAction | ( | Action | object | ) |
| MalleableString org.lflang.ast.ToLf.caseArray | ( | Array | object | ) |
| MalleableString org.lflang.ast.ToLf.caseAssignment | ( | Assignment | object | ) |
| MalleableString org.lflang.ast.ToLf.caseAttribute | ( | Attribute | object | ) |
| MalleableString org.lflang.ast.ToLf.caseAttrParm | ( | AttrParm | object | ) |
| MalleableString org.lflang.ast.ToLf.caseBracedListExpression | ( | BracedListExpression | object | ) |
| MalleableString org.lflang.ast.ToLf.caseBracketListExpression | ( | BracketListExpression | object | ) |
| MalleableString org.lflang.ast.ToLf.caseBuiltinTriggerRef | ( | BuiltinTriggerRef | object | ) |
| MalleableString org.lflang.ast.ToLf.caseCode | ( | Code | code | ) |
| MalleableString org.lflang.ast.ToLf.caseCodeExpr | ( | CodeExpr | object | ) |
| MalleableString org.lflang.ast.ToLf.caseConnection | ( | Connection | object | ) |
| MalleableString org.lflang.ast.ToLf.caseCStyleArraySpec | ( | CStyleArraySpec | spec | ) |
| MalleableString org.lflang.ast.ToLf.caseDeadline | ( | Deadline | object | ) |
| MalleableString org.lflang.ast.ToLf.caseElement | ( | Element | object | ) |
| MalleableString org.lflang.ast.ToLf.caseExpression | ( | Expression | object | ) |
| MalleableString org.lflang.ast.ToLf.caseHost | ( | Host | host | ) |
| MalleableString org.lflang.ast.ToLf.caseImport | ( | Import | object | ) |
| MalleableString org.lflang.ast.ToLf.caseImportedReactor | ( | ImportedReactor | object | ) |
| MalleableString org.lflang.ast.ToLf.caseInitializer | ( | Initializer | init | ) |
| MalleableString org.lflang.ast.ToLf.caseInput | ( | Input | object | ) |
| MalleableString org.lflang.ast.ToLf.caseInstantiation | ( | Instantiation | object | ) |
| MalleableString org.lflang.ast.ToLf.caseIPV4Host | ( | IPV4Host | object | ) |
| MalleableString org.lflang.ast.ToLf.caseIPV6Host | ( | IPV6Host | object | ) |
| MalleableString org.lflang.ast.ToLf.caseKeyValuePair | ( | KeyValuePair | object | ) |
| MalleableString org.lflang.ast.ToLf.caseKeyValuePairs | ( | KeyValuePairs | object | ) |
| MalleableString org.lflang.ast.ToLf.caseLiteral | ( | Literal | l | ) |
| MalleableString org.lflang.ast.ToLf.caseMethod | ( | Method | object | ) |
| MalleableString org.lflang.ast.ToLf.caseMethodArgument | ( | MethodArgument | object | ) |
| MalleableString org.lflang.ast.ToLf.caseMode | ( | Mode | object | ) |
| MalleableString org.lflang.ast.ToLf.caseModel | ( | Model | object | ) |
| MalleableString org.lflang.ast.ToLf.caseNamedHost | ( | NamedHost | object | ) |
| MalleableString org.lflang.ast.ToLf.caseOutput | ( | Output | object | ) |
| MalleableString org.lflang.ast.ToLf.caseParameter | ( | Parameter | object | ) |
| MalleableString org.lflang.ast.ToLf.caseParameterReference | ( | ParameterReference | p | ) |
| MalleableString org.lflang.ast.ToLf.caseParenthesisListExpression | ( | ParenthesisListExpression | object | ) |
| MalleableString org.lflang.ast.ToLf.casePort | ( | Port | object | ) |
| MalleableString org.lflang.ast.ToLf.casePreamble | ( | Preamble | object | ) |
| MalleableString org.lflang.ast.ToLf.caseReaction | ( | Reaction | object | ) |
| MalleableString org.lflang.ast.ToLf.caseReactor | ( | Reactor | object | ) |
| MalleableString org.lflang.ast.ToLf.caseReactorDecl | ( | ReactorDecl | object | ) |
| MalleableString org.lflang.ast.ToLf.caseSerializer | ( | Serializer | object | ) |
| MalleableString org.lflang.ast.ToLf.caseStateVar | ( | StateVar | object | ) |
| MalleableString org.lflang.ast.ToLf.caseSTP | ( | STP | object | ) |
| MalleableString org.lflang.ast.ToLf.caseTardy | ( | Tardy | object | ) |
| MalleableString org.lflang.ast.ToLf.caseTargetDecl | ( | TargetDecl | object | ) |
| MalleableString org.lflang.ast.ToLf.caseTime | ( | Time | t | ) |
| MalleableString org.lflang.ast.ToLf.caseTimer | ( | Timer | object | ) |
| MalleableString org.lflang.ast.ToLf.caseTriggerRef | ( | TriggerRef | object | ) |
| MalleableString org.lflang.ast.ToLf.caseType | ( | Type | type | ) |
| MalleableString org.lflang.ast.ToLf.caseTypedVariable | ( | TypedVariable | object | ) |
| MalleableString org.lflang.ast.ToLf.caseTypeParm | ( | TypeParm | t | ) |
| MalleableString org.lflang.ast.ToLf.caseVariable | ( | Variable | object | ) |
| MalleableString org.lflang.ast.ToLf.caseVarRef | ( | VarRef | v | ) |
| MalleableString org.lflang.ast.ToLf.caseWatchdog | ( | Watchdog | object | ) |
| MalleableString org.lflang.ast.ToLf.caseWidthSpec | ( | WidthSpec | object | ) |
| MalleableString org.lflang.ast.ToLf.caseWidthTerm | ( | WidthTerm | object | ) |
| MalleableString org.lflang.ast.ToLf.defaultCase | ( | EObject | object | ) |
| MalleableString org.lflang.ast.ToLf.doSwitch | ( | EObject | eObject | ) |
|
staticpackage |
Return all comments contained by ancestors of node that belong to said ancestors.
|
staticpackage |
Return the next composite sibling of node, as given by sequential application of getNextSibling.
|
package |
|
package |
|
package |
Represent the given EList as a string.
| suffix | The token marking the end of the list. |
| separator | The separator separating elements of the list. |
| prefix | The token marking the start of the list. |
| nothingIfEmpty | Whether the result should be simplified to the empty string as opposed to just the prefix and suffix. |
| whitespaceRigid | Whether any whitespace appearing in the |
| suffixSameLine | Whether the suffix should be on the same line as the last element. |
| items | The list of elements to convert to a string. |