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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionnot useful for retrieval of classes via view. remove inputlocation from sootclass?EagerInputLocation(@NonNull Map<ClassType, SootClassSource> map, @Nullable SourceType sourceType) EagerInputLocation(@NonNull Map<ClassType, SootClassSource> map, @Nullable SourceType sourceType, @NonNull List<BodyInterceptor> bodyInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull List<BodyInterceptor>@NonNull Optional<SootClassSource>getClassSource(@NonNull ClassType type, @Nullable View view) Create or find a class source for a given type.@NonNull Stream<SootClassSource>getClassSources(@Nullable View view) Scan the input location and create ClassSources for every compilation / interpretation unit.@NonNull SourceTypeIf the AnalysisInputLocation is initialized with the SourceType then this method should return that specific SourceType.inthashCode()
-
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
public @NonNull Optional<SootClassSource> getClassSource(@NonNull ClassType type, @Nullable View view) Description copied from interface:AnalysisInputLocationCreate or find a class source for a given type.- Specified by:
getClassSourcein interfaceAnalysisInputLocation- Parameters:
type- The type of the class to be found.- Returns:
- The source entry for that class.
-
getClassSources
Description copied from interface:AnalysisInputLocationScan the input location and create ClassSources for every compilation / interpretation unit.- Specified by:
getClassSourcesin interfaceAnalysisInputLocation- Returns:
- an Autocloseable resource that must be closed!
-
getSourceType
Description copied from interface:AnalysisInputLocationIf 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:
getSourceTypein interfaceAnalysisInputLocation- Returns:
- returns null as source type
-
getBodyInterceptors
- Specified by:
getBodyInterceptorsin interfaceAnalysisInputLocation
-
hashCode
public int hashCode() -
equals
-