Package-level declarations
Functions
Creates a new AssignExpression with a =
AssignExpression.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new BinaryOperator with a =
BinaryOperator.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new AssignExpression with a =
AssignExpression.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new AssignExpression with a +=
AssignExpression.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new Block in the Fluent Node DSL and sets it to the FunctionDeclaration.body of the nearest enclosing FunctionDeclaration. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Block in the Fluent Node DSL and sets it to the FunctionDeclaration.body of the nearest enclosing FunctionDeclaration. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BreakStatement in the Fluent Node DSL and adds it to the nearest enclosing Holder, but only if it is an StatementHolder.
Creates a new CallExpression (or MemberCallExpression) in the Fluent Node DSL with the given name and adds it to the nearest enclosing Holder. Depending on whether it is a StatementHolder it is added to the list of StatementHolder.statements or in case of an ArgumentHolder, the function ArgumentHolder.addArgument is invoked.
Creates a new CaseStatement in the Fluent Node DSL and adds it to the nearest enclosing Holder, but only if it is an StatementHolder.
Configures the IfStatement.condition in the Fluent Node DSL of the nearest enclosing IfStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ConditionalExpression with a =
BinaryOperator.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new ConstructExpression in the Fluent Node DSL for the translation record/type with the given name and adds it to the nearest enclosing Holder. Depending on whether it is a StatementHolder it is added to the list of StatementHolder.statements or in case of an ArgumentHolder, the function ArgumentHolder.addArgument is invoked. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ConstructorDeclaration in the Fluent Node DSL for the enclosing RecordDeclaration. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ContinueStatement in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new UnaryOperator with a --
UnaryOperator.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new DeclarationStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new DeclarationStatement in the Fluent Node DSL. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new DefaultStatement in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new BinaryOperator with a /
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Configures the DoStatement.condition in the Fluent Node DSL of the nearest enclosing DoStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new DoStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new IfStatement in the Fluent Node DSL and sets it to the IfStatement.elseStatement of the nearest enclosing IfStatement. This simulates an else-if
scenario. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Block in the Fluent Node DSL and sets it to the IfStatement.elseStatement of the nearest enclosing IfStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BinaryOperator with a ==
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new FieldDeclaration in the Fluent Node DSL with the given name and optional type. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ForEachStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ForStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new FunctionDeclaration in the Fluent Node DSL with the given name and optional returnType. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BinaryOperator with a >=
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new BinaryOperator with a >
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new IfStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new InitializerListExpression in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing Holder, but only if it is an ArgumentHolder.
Creates a new IncludeDeclaration and adds it to the surrounding TranslationUnitDeclaration.
Creates a new UnaryOperator with a ++
UnaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new UnaryOperator with a ++
UnaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Configures the ForStatement.initializerStatement in the Fluent Node DSL of the nearest enclosing ForStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Configures the ForEachStatement.iterable in the Fluent Node DSL of the nearest enclosing ForEachStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new LabelStatement in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new BinaryOperator with a <=
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
This utility function tries to create a fake PhysicalLocation in order to somewhat differentiate the different nodes. This is primarily needed for the mermaid graph printer, which relies on Node.hashCode, which in turn relies on Node.location.
Creates a new Literal in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing Holder, but only if it is an ArgumentHolder.
Creates a new Block in the Fluent Node DSL and sets it to the LoopStatement.statement of the nearest enclosing LoopStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Block in the Fluent Node DSL and sets it to the LoopStatement.elseStatement of the nearest enclosing LoopStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BinaryOperator with a <
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new MemberExpression in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing Holder, but only if it is an ArgumentHolder. If the name doesn't already contain a fqn, we add an implicit "this" as base.
Creates a new CallExpression (or MemberCallExpression) in the Fluent Node DSL with the given localName and adds it to the nearest enclosing Holder. Depending on whether it is a StatementHolder it is added to the list of StatementHolder.statements or in case of an ArgumentHolder, the function ArgumentHolder.addArgument is invoked.
Creates a new MethodDeclaration in the Fluent Node DSL with the given name and optional returnType. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BinaryOperator with a -
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new NamespaceDeclaration in the Fluent Node DSL with the given name. The declaration will be set to the ScopeManager.globalScope. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ParameterDeclaration in the Fluent Node DSL and adds it to the FunctionDeclaration.parameters of the nearest enclosing FunctionDeclaration. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new BinaryOperator with a +
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new BinaryOperator with a +
BinaryOperator.operatorCode in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new ProblemDeclaration in the Fluent Node DSL and adds it to the DeclarationStatement.declarations of the nearest enclosing DeclarationStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new RecordDeclaration in the Fluent Node DSL with the given name. The declaration will be set to the ScopeManager.currentRecord. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Reference in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing Holder, but only if it is an ArgumentHolder.
Creates a new UnaryOperator with a &
UnaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new BinaryOperator with a +
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new ReturnStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Block in the Fluent Node DSL and sets it to the SwitchStatement.statement of the nearest enclosing SwitchStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new SwitchStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new Block in the Fluent Node DSL and sets it to the IfStatement.thenStatement of the nearest enclosing IfStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new ThrowExpression in the Fluent Node DSL and adds it to the nearest enclosing StatementHolder.
Creates a new BinaryOperator with a *
BinaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Creates a new TranslationUnitDeclaration in the Fluent Node DSL with the given name. The declaration will be set to the ScopeManager.globalScope. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new UnaryOperator with a -
UnaryOperator.operatorCode in the Fluent Node DSL and invokes ArgumentHolder.addArgument of the nearest enclosing ArgumentHolder.
Configures the ForEachStatement.variable in the Fluent Node DSL of the nearest enclosing ForEachStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new VariableDeclaration in the Fluent Node DSL and adds it to the DeclarationStatement.declarations of the nearest enclosing DeclarationStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new IncompleteType in the Fluent Node DSL.
Configures the WhileStatement.condition in the Fluent Node DSL of the nearest enclosing WhileStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Creates a new WhileStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.