Class ComponentInterfaceStrategy
java.lang.Object
org.somox.analyzer.simplemodelanalyzer.detection.ComponentInterfaceStrategy
- All Implemented Interfaces:
IComponentInterfaceStrategy
Default interface detection strategy. Conditions in GAST: interface or only
virtual methods which is not primitive or identified a component interface
before (e.g. public methods used as component interface due to a fall back
strategy).
-
Constructor Summary
ConstructorDescriptionComponentInterfaceStrategy
(SourceCodeDecoratorRepository sourceCodeDecorator) Default ctor for this strategy. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isComponentInterface
(tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier classToCheck) Checks whether a class is interpreted as a component interface.
-
Constructor Details
-
ComponentInterfaceStrategy
Default ctor for this strategy.- Parameters:
sourceCodeDecorator
- decorator to check for (additional) interfaces which are to be considered as component interfaces. Interfaces from the source code decorator are considered as whitelisted.
-
-
Method Details
-
isComponentInterface
public boolean isComponentInterface(tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier classToCheck) Description copied from interface:IComponentInterfaceStrategy
Checks whether a class is interpreted as a component interface.- Specified by:
isComponentInterface
in interfaceIComponentInterfaceStrategy
- Parameters:
classToCheck
- The class to check- Returns:
- true if considered as an interface; false else
-