Package org.somox.gast2seff.visitors
Class AbstractLibraryCallFunctionClassificationStrategy
java.lang.Object
org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
org.somox.gast2seff.visitors.AbstractLibraryCallFunctionClassificationStrategy
- All Implemented Interfaces:
IFunctionClassificationStrategy
- Direct Known Subclasses:
BasicFunctionClassificationStrategy
public abstract class AbstractLibraryCallFunctionClassificationStrategy
extends AbstractFunctionClassificationStrategy
Class that defines how library calls are marked but not how external calls are marked.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractLibraryCallFunctionClassificationStrategy
(Root root, SourceCodeDecoratorRepository sourceCodeDecoratorRepository, MethodCallFinder methodCallFinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isLibraryCall
(org.emftext.language.java.members.Method method) Checks whether the method call is a access to a library.Methods inherited from class org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
classifySimpleStatement, isEmitEventCall, isExternalCall, mergeFunctionCallType
-
Field Details
-
root
-
-
Constructor Details
-
AbstractLibraryCallFunctionClassificationStrategy
public AbstractLibraryCallFunctionClassificationStrategy(Root root, SourceCodeDecoratorRepository sourceCodeDecoratorRepository, MethodCallFinder methodCallFinder)
-
-
Method Details
-
isLibraryCall
protected boolean isLibraryCall(org.emftext.language.java.members.Method method) Checks whether the method call is a access to a library. This is the case if the compilation unit of the target method is not in the root- Specified by:
isLibraryCall
in classAbstractFunctionClassificationStrategy
- Parameters:
method
- The function access to test- Returns:
- true if the function access is
-