Class EJBFunctionClassificationStrategy
java.lang.Object
org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
org.annotationsmox.seffhelper.functionclassification.EJBFunctionClassificationStrategy
- All Implemented Interfaces:
IFunctionClassificationStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionEJBFunctionClassificationStrategy(SourceCodeDecoratorRepository sourceCodeDecoratorRepository, org.palladiosimulator.pcm.repository.BasicComponent basicComponent, Root root, MethodCallFinder methodCallFinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisEmitEventCall(org.emftext.language.java.members.Method method) We consider calls to the fire method javax.enterprise.event.Event as emit event callprotected booleanisExternalCall(org.emftext.language.java.members.Method method) External calls are all calls to an interface that is required by the current componentprotected booleanisLibraryCall(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 classMethods inherited from class org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
classifySimpleStatement, mergeFunctionCallType
-
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:
isExternalCallin classAbstractFunctionClassificationStrategy- 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:
isEmitEventCallin classAbstractFunctionClassificationStrategy- 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:
isLibraryCallin classAbstractFunctionClassificationStrategy- Parameters:
method- The function access to test- Returns:
- true if the function access is
-