Package org.somox.gast2seff.visitors
Class BasicFunctionClassificationStrategy
java.lang.Object
org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
org.somox.gast2seff.visitors.AbstractLibraryCallFunctionClassificationStrategy
org.somox.gast2seff.visitors.BasicFunctionClassificationStrategy
- All Implemented Interfaces:
IFunctionClassificationStrategy
public class BasicFunctionClassificationStrategy
extends AbstractLibraryCallFunctionClassificationStrategy
implements IFunctionClassificationStrategy
Implementation of
IFunctionClassificationStrategy
. Uses basic heuristics based on the
source code decorator and the GAST model to decide on the type of function calls.-
Field Summary
Fields inherited from class org.somox.gast2seff.visitors.AbstractLibraryCallFunctionClassificationStrategy
root
-
Constructor Summary
ConstructorDescriptionBasicFunctionClassificationStrategy
(SourceCodeDecoratorRepository sourceCodeDecoratorRepository, org.palladiosimulator.pcm.repository.BasicComponent primitiveComponent, Root root, MethodCallFinder methodCallFinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isExternalCall
(org.emftext.language.java.members.Method method) Decide whether the given simple statement which is the given function access is an external call, i.e., a call which results in a external call action in the SEFFMethods inherited from class org.somox.gast2seff.visitors.AbstractLibraryCallFunctionClassificationStrategy
isLibraryCall
Methods inherited from class org.somox.gast2seff.visitors.AbstractFunctionClassificationStrategy
classifySimpleStatement, isEmitEventCall, mergeFunctionCallType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.somox.gast2seff.visitors.IFunctionClassificationStrategy
classifySimpleStatement, mergeFunctionCallType
-
Field Details
-
sourceCodeDecoratorRepository
-
-
Constructor Details
-
BasicFunctionClassificationStrategy
public BasicFunctionClassificationStrategy(SourceCodeDecoratorRepository sourceCodeDecoratorRepository, org.palladiosimulator.pcm.repository.BasicComponent primitiveComponent, Root root, MethodCallFinder methodCallFinder) - Parameters:
sourceCodeDecoratorRepository
- The source code decorator which links the component for which to classify statements and the GAST.primitiveComponent
- The primitive component for which to decide whether the function access represents an external call.methodCallFinder
-
-
-
Method Details
-
isExternalCall
protected boolean isExternalCall(org.emftext.language.java.members.Method method) Description copied from class:AbstractFunctionClassificationStrategy
Decide whether the given simple statement which is the given function access is an external call, i.e., a call which results in a external call action in the SEFF- Specified by:
isExternalCall
in classAbstractFunctionClassificationStrategy
- Parameters:
method
- The function access to test- Returns:
- true if the function access is an external call
-