Class GastToPrimitiveComponentInitializationStrategy
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.detection.AbstractInitializationStrategy
org.somox.analyzer.simplemodelanalyzer.detection.GastToPrimitiveComponentInitializationStrategy
- All Implemented Interfaces:
IInitializationStrategy
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.
Classes are extracted from the Resource and "bundled" with their inner classes. Each such bundle immediately becomes a primitive component.
-
Field Summary
Fields inherited from class org.somox.analyzer.simplemodelanalyzer.detection.AbstractInitializationStrategy
dataObjectFilter, improperStructFilter, primitiveClassesFilter, unknownClassTypeFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInitialComponentCandidates
(Root root, SoMoXConfiguration config, ComponentBuilder builder) Create an initial list of component candidates by following a simple heuristic: each GASTClass is a 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
IPrimitiveComponentCandidate
s.
-