Package sootup.jimple.frontend
Class JimpleAnalysisInputLocation
java.lang.Object
sootup.jimple.frontend.JimpleAnalysisInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
- Author:
- Markus Schmidt
-
Constructor Summary
ConstructorsConstructorDescriptionJimpleAnalysisInputLocation(@NonNull Path path) JimpleAnalysisInputLocation(@NonNull Path path, @Nullable SourceType srcType) JimpleAnalysisInputLocation(@NonNull Path path, @Nullable SourceType srcType, @NonNull List<BodyInterceptor> bodyInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull List<BodyInterceptor>@NonNull Optional<SootClassSource>getClassSource(@NonNull ClassType type, @NonNull View view) Create or find a class source for a given type.@NonNull Stream<SootClassSource>getClassSources(@NonNull 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()
-
Constructor Details
-
JimpleAnalysisInputLocation
-
JimpleAnalysisInputLocation
-
JimpleAnalysisInputLocation
public JimpleAnalysisInputLocation(@NonNull Path path, @Nullable SourceType srcType, @NonNull List<BodyInterceptor> bodyInterceptors)
-
-
Method Details
-
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
-
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!
-
getClassSource
public @NonNull Optional<SootClassSource> getClassSource(@NonNull ClassType type, @NonNull 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.
-
equals
-
hashCode
public int hashCode()
-