Class MCArrayStatementsMill

java.lang.Object
de.monticore.statements.mcarraystatements.MCArrayStatementsMill
Direct Known Subclasses:
MCArrayStatementsMillForGrammar_WithConcepts, MCArrayStatementsMillForJavaLight, MCArrayStatementsMillForMCFullJavaStatements, MCArrayStatementsMillForODRules, MCArrayStatementsMillForTFBasisExts, MCArrayStatementsMillForTFCommons

public class MCArrayStatementsMill extends Object
The mill is a factory for builders and other commonly used functions, such as parsers or visitors. The mill was introduced to ensure compositionality of languages, while retaining reusability of functions developed for sublanguages. Only one mill instance exists, even though in composed languages it is available under several static signatures.
  • Field Details

  • Constructor Details

    • MCArrayStatementsMill

      protected MCArrayStatementsMill()
  • Method Details

    • getMill

      public static MCArrayStatementsMill getMill()
    • init

      public static void init()
      Initializes a languages Mill. This will also initialize the Mills of all languages it depends on. This ensures that all objects of this mill, such as builders, traversers, scopes, ..., deliver the element of the correct language.
    • arrayDeclaratorIdBuilder

      public static ASTArrayDeclaratorIdBuilder arrayDeclaratorIdBuilder()
    • _arrayDeclaratorIdBuilder

      protected ASTArrayDeclaratorIdBuilder _arrayDeclaratorIdBuilder()
    • arrayInitBuilder

      public static ASTArrayInitBuilder arrayInitBuilder()
    • _arrayInitBuilder

      protected ASTArrayInitBuilder _arrayInitBuilder()
    • prettyPrint

      public static String prettyPrint(de.monticore.ast.ASTNode node, boolean printComments)
      Uses the composed pretty printer to print an ASTNode of this language
      Parameters:
      node - The ASTNode to be printed
      printComments - Whether comments should be printed
      Returns:
      The pretty printer output
    • _prettyPrint

      protected String _prettyPrint(de.monticore.ast.ASTNode node, boolean printComments)
    • typeDispatcher

      @Deprecated(forRemoval=true) public static IMCArrayStatementsTypeDispatcher typeDispatcher()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • _typeDispatcher

      @Deprecated(forRemoval=true) protected IMCArrayStatementsTypeDispatcher _typeDispatcher()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • traverser

      public static MCArrayStatementsTraverser traverser()
      A traverser is the conceptual entry point for every action within the visitor infrastructure. Visitors may be added, which contain the implementations for the visit and endVisit methods. Handlers may be added to modify the default traversal strategy. Each traverser retains their traversed elements to avoid duplicate traversal, possibly requiring ITraverser.clearTraversedElements() to be called in case of re-use inheritanceTraverser() should be preferred over normal traverser, as they further enable language composition.
      Returns:
      a new instance of this language's traverser
    • _traverser

      protected MCArrayStatementsTraverser _traverser()
    • inheritanceTraverser

      public static MCArrayStatementsTraverser inheritanceTraverser()
      A traverser is the conceptual entry point for every action within the visitor infrastructure. Visitors may be added, which contain the implementations for the visit and endVisit methods. Handlers may be added to modify the default traversal strategy. Each traverser retains their traversed elements to avoid duplicate traversal, possibly requiring ITraverser.clearTraversedElements() to be called in case of re-use Inheritance Traverser should be preferred over default ones, as they further enable language composition.
      Returns:
      a new instance of this language's inheritance traverser
    • _inheritanceTraverser

      protected MCArrayStatementsTraverser _inheritanceTraverser()
    • singleStepTraverser

      public static MCArrayStatementsTraverser singleStepTraverser()
      A traverser is the conceptual entry point for every action within the visitor infrastructure. Visitors may be added, which contain the implementations for the visit and endVisit methods. Handlers may be added to modify the default traversal strategy. Each traverser retains their traversed elements to avoid duplicate traversal, possibly requiring ITraverser.clearTraversedElements() to be called in case of re-use Inheritance Traverser should be preferred over default ones, as they further enable language composition.
      Returns:
      a new instance of this language's inheritance traverser
    • _singleStepTraverser

      protected MCArrayStatementsTraverser _singleStepTraverser()
    • globalScope

      public static IMCArrayStatementsGlobalScope globalScope()
    • _globalScope

      protected IMCArrayStatementsGlobalScope _globalScope()
    • artifactScope

      public static IMCArrayStatementsArtifactScope artifactScope()
    • _artifactScope

      protected IMCArrayStatementsArtifactScope _artifactScope()
    • scope

      public static IMCArrayStatementsScope scope()
    • _scope

      protected IMCArrayStatementsScope _scope()
    • scopesGenitor

      public static MCArrayStatementsScopesGenitor scopesGenitor()
      Returns a new ScopeGenitor. ScopeGenitors are responsible for creating the scope structure of artifacts of only this language and linking it with the AST nodes. Note: ScopeGenitors do NOT delegate to elements of composed languages which is why you are most likely looking for scopesGenitorDelegator().
      Returns:
      a new instance of this language's scope genitor
    • _scopesGenitor

      protected MCArrayStatementsScopesGenitor _scopesGenitor()
    • scopesGenitorDelegator

      public static MCArrayStatementsScopesGenitorDelegator scopesGenitorDelegator()
      Returns a new ScopeGenitorDelegator. Delegates to the ScopeGenitors of composed languages, used for instantiating symbol tables in the context of language composition See the delegators #createFromAST method.
      Returns:
      a new instance of this language's scope genitor delegator
    • _scopesGenitorDelegator

      protected MCArrayStatementsScopesGenitorDelegator _scopesGenitorDelegator()
    • localVariableDeclarationStatementBuilder

      public static ASTLocalVariableDeclarationStatementBuilder localVariableDeclarationStatementBuilder()
    • localVariableDeclarationBuilder

      public static ASTLocalVariableDeclarationBuilder localVariableDeclarationBuilder()
    • variableDeclaratorBuilder

      public static ASTVariableDeclaratorBuilder variableDeclaratorBuilder()
    • declaratorIdBuilder

      public static ASTDeclaratorIdBuilder declaratorIdBuilder()
    • simpleInitBuilder

      public static ASTSimpleInitBuilder simpleInitBuilder()
    • mCQualifiedNameBuilder

      public static ASTMCQualifiedNameBuilder mCQualifiedNameBuilder()
    • mCPackageDeclarationBuilder

      public static ASTMCPackageDeclarationBuilder mCPackageDeclarationBuilder()
    • mCImportStatementBuilder

      public static ASTMCImportStatementBuilder mCImportStatementBuilder()
    • mCPrimitiveTypeBuilder

      public static ASTMCPrimitiveTypeBuilder mCPrimitiveTypeBuilder()
    • mCQualifiedTypeBuilder

      public static ASTMCQualifiedTypeBuilder mCQualifiedTypeBuilder()
    • mCReturnTypeBuilder

      public static ASTMCReturnTypeBuilder mCReturnTypeBuilder()
    • mCVoidTypeBuilder

      public static ASTMCVoidTypeBuilder mCVoidTypeBuilder()
    • nameExpressionBuilder

      public static ASTNameExpressionBuilder nameExpressionBuilder()
    • literalExpressionBuilder

      public static ASTLiteralExpressionBuilder literalExpressionBuilder()
    • argumentsBuilder

      public static ASTArgumentsBuilder argumentsBuilder()
    • oOTypeSymbolBuilder

      public static OOTypeSymbolBuilder oOTypeSymbolBuilder()
    • oOTypeSymbolSurrogateBuilder

      public static OOTypeSymbolSurrogateBuilder oOTypeSymbolSurrogateBuilder()
    • fieldSymbolBuilder

      public static FieldSymbolBuilder fieldSymbolBuilder()
    • fieldSymbolSurrogateBuilder

      public static FieldSymbolSurrogateBuilder fieldSymbolSurrogateBuilder()
    • methodSymbolBuilder

      public static MethodSymbolBuilder methodSymbolBuilder()
    • methodSymbolSurrogateBuilder

      public static MethodSymbolSurrogateBuilder methodSymbolSurrogateBuilder()
    • diagramSymbolBuilder

      public static DiagramSymbolBuilder diagramSymbolBuilder()
    • diagramSymbolSurrogateBuilder

      public static DiagramSymbolSurrogateBuilder diagramSymbolSurrogateBuilder()
    • typeSymbolBuilder

      public static TypeSymbolBuilder typeSymbolBuilder()
    • typeSymbolSurrogateBuilder

      public static TypeSymbolSurrogateBuilder typeSymbolSurrogateBuilder()
    • typeVarSymbolBuilder

      public static TypeVarSymbolBuilder typeVarSymbolBuilder()
    • typeVarSymbolSurrogateBuilder

      public static TypeVarSymbolSurrogateBuilder typeVarSymbolSurrogateBuilder()
    • variableSymbolBuilder

      public static VariableSymbolBuilder variableSymbolBuilder()
    • variableSymbolSurrogateBuilder

      public static VariableSymbolSurrogateBuilder variableSymbolSurrogateBuilder()
    • functionSymbolBuilder

      public static FunctionSymbolBuilder functionSymbolBuilder()
    • functionSymbolSurrogateBuilder

      public static FunctionSymbolSurrogateBuilder functionSymbolSurrogateBuilder()
    • mCStereotypeSymbolBuilder

      public static MCStereotypeSymbolBuilder mCStereotypeSymbolBuilder()
    • mCStereotypeSymbolSurrogateBuilder

      public static MCStereotypeSymbolSurrogateBuilder mCStereotypeSymbolSurrogateBuilder()
    • initMe

      public static void initMe(MCArrayStatementsMill a)
    • reset

      public static void reset()
    • getState

      public static MCArrayStatementsMillState getState()
      EXPERIMENTAL! Returns the mill as an attribute (without static references required).
      Returns:
      the mill state
    • setState

      public static void setState(MCArrayStatementsMillState state)
      EXPERIMENTAL! Loads the mill state into the static state.
      Parameters:
      state - The non-static state, see #getState()