Class GastToPrimitiveComponentInitializationStrategy

java.lang.Object
org.somox.analyzer.simplemodelanalyzer.detection.AbstractInitializationStrategy
org.somox.analyzer.simplemodelanalyzer.detection.GastToPrimitiveComponentInitializationStrategy
All Implemented Interfaces:
IInitializationStrategy

public class GastToPrimitiveComponentInitializationStrategy extends AbstractInitializationStrategy
Initialization class for the conversion from GAST class to component.
Classes are extracted from the Resource and "bundled" with their inner classes. Each such bundle immediately becomes a primitive component.
  • Constructor Details

    • GastToPrimitiveComponentInitializationStrategy

      public GastToPrimitiveComponentInitializationStrategy()
  • Method Details

    • createInitialComponentCandidates

      public List<ComponentImplementingClassesLink> createInitialComponentCandidates(Root root, SoMoXConfiguration config, ComponentBuilder builder)
      Create an initial list of component candidates by following a simple heuristic: each GASTClass is a component. Its implementation consists of the GAST class itself and the set of all inner, i.e., nested, classes Real structs, unions and enumerations are omitted.
      Returns:
      A list of initial component candidates. This method guarantees that all components are IPrimitiveComponentCandidates.