Package sootup.core.inputlocation
Class EagerInputLocation
java.lang.Object
sootup.core.inputlocation.EagerInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
stores (already loaded) ClassType -> ClassSource associations for retrieval
- Author:
- Markus Schmidt
-
Field Summary
-
Constructor Summary
ConstructorDescriptionnot useful for retrieval of classes via view.EagerInputLocation
(Map<ClassType, SootClassSource> map, SourceType sourceType) EagerInputLocation
(Map<ClassType, SootClassSource> map, SourceType sourceType, 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()
-
Field Details
-
sourceType
-
-
Constructor Details
-
EagerInputLocation
public EagerInputLocation()not useful for retrieval of classes via view. remove inputlocation from sootclass? -
EagerInputLocation
public EagerInputLocation(@Nonnull Map<ClassType, SootClassSource> map, @Nullable SourceType sourceType) -
EagerInputLocation
public EagerInputLocation(@Nonnull Map<ClassType, SootClassSource> map, @Nullable SourceType sourceType, @Nonnull List<BodyInterceptor> bodyInterceptors)
-
-
Method Details
-
getClassSource
@Nonnull public Optional<SootClassSource> getClassSource(@Nonnull ClassType type, @Nullable 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.
-
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.
-
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
-
hashCode
public int hashCode() -
equals
-