Package sootup.jimple.frontend
Class JimpleAnalysisInputLocation
java.lang.Object
sootup.jimple.frontend.JimpleAnalysisInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
- Author:
- Markus Schmidt
-
Constructor Summary
ConstructorDescriptionJimpleAnalysisInputLocation
(Path path, SourceType srcType) JimpleAnalysisInputLocation
(Path path, SourceType srcType, List<BodyInterceptor> bodyInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getClassSource
(ClassType type, View view) Create or find a class source for a given type.getClassSources
(View view) Scan the input location and create ClassSources for every compilation / interpretation unit.If the AnalysisInputLocation is initialized with the SourceType then this method should return that specific SourceType.int
hashCode()
-
Constructor Details
-
JimpleAnalysisInputLocation
-
JimpleAnalysisInputLocation
-
JimpleAnalysisInputLocation
public JimpleAnalysisInputLocation(@Nonnull Path path, @Nullable SourceType srcType, @Nonnull List<BodyInterceptor> bodyInterceptors)
-
-
Method Details
-
getSourceType
Description copied from interface:AnalysisInputLocation
If the AnalysisInputLocation is initialized with the SourceType then this method should return that specific SourceType. This is the default implementation and it returns null when no source type is specified.- Specified by:
getSourceType
in interfaceAnalysisInputLocation
- Returns:
- returns null as source type
-
getBodyInterceptors
- Specified by:
getBodyInterceptors
in interfaceAnalysisInputLocation
-
getClassSources
Description copied from interface:AnalysisInputLocation
Scan the input location and create ClassSources for every compilation / interpretation unit.- Specified by:
getClassSources
in interfaceAnalysisInputLocation
- Returns:
- The source entries.
-
getClassSource
@Nonnull public Optional<SootClassSource> getClassSource(@Nonnull ClassType type, @Nonnull View view) Description copied from interface:AnalysisInputLocation
Create or find a class source for a given type.- Specified by:
getClassSource
in interfaceAnalysisInputLocation
- Parameters:
type
- The type of the class to be found.- Returns:
- The source entry for that class.
-
equals
-
hashCode
public int hashCode()
-