Class ComponentInterfaceStrategy

java.lang.Object
org.somox.analyzer.simplemodelanalyzer.detection.ComponentInterfaceStrategy
All Implemented Interfaces:
IComponentInterfaceStrategy

public class ComponentInterfaceStrategy extends Object implements 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 Details

    • ComponentInterfaceStrategy

      public ComponentInterfaceStrategy(SourceCodeDecoratorRepository sourceCodeDecorator)
      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 interface IComponentInterfaceStrategy
      Parameters:
      classToCheck - The class to check
      Returns:
      true if considered as an interface; false else