Class EJBFunctionClassificationStrategy

java.lang.Object
org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
org.annotationsmox.seffhelper.functionclassification.EJBFunctionClassificationStrategy
All Implemented Interfaces:
IFunctionClassificationStrategy

public class EJBFunctionClassificationStrategy extends AbstractFunctionClassificationStrategy
  • Constructor Details

    • EJBFunctionClassificationStrategy

      public EJBFunctionClassificationStrategy(SourceCodeDecoratorRepository sourceCodeDecoratorRepository, org.palladiosimulator.pcm.repository.BasicComponent basicComponent, Root root, MethodCallFinder methodCallFinder)
  • Method Details

    • isExternalCall

      protected boolean isExternalCall(org.emftext.language.java.members.Method method)
      External calls are all calls to an interface that is required by the current component
      Specified by:
      isExternalCall in class AbstractFunctionClassificationStrategy
      Parameters:
      method - The function access to test
      Returns:
      true if the function access is an external call
    • isEmitEventCall

      protected boolean isEmitEventCall(org.emftext.language.java.members.Method method)
      We consider calls to the fire method javax.enterprise.event.Event as emit event call
      Overrides:
      isEmitEventCall in class AbstractFunctionClassificationStrategy
      Parameters:
      method - The method to test
      Returns:
      true if the method is an external call
    • isLibraryCall

      protected boolean isLibraryCall(org.emftext.language.java.members.Method method)
      Library calls are all calls that 1) target a method "outside" the current compilation units or 2) calls to a data type class
      Specified by:
      isLibraryCall in class AbstractFunctionClassificationStrategy
      Parameters:
      method - The function access to test
      Returns:
      true if the function access is