Package sootup.java.core.views
Class JavaModuleView
java.lang.Object
sootup.core.views.AbstractView
sootup.java.core.views.JavaView
sootup.java.core.views.JavaModuleView
- All Implemented Interfaces:
View
The JavaModuleView manages the Java classes of the application being analyzed for >=Java9
- Author:
- Markus Schmidt
-
Field Summary
Fields inherited from class sootup.java.core.views.JavaView
cache, identifierFactory, inputLocations, isFullyResolved
-
Constructor Summary
ConstructorDescriptionJavaModuleView
(List<AnalysisInputLocation> inputLocations, List<ModuleInfoAnalysisInputLocation> moduleInputLocations) JavaModuleView
(List<AnalysisInputLocation> inputLocations, List<ModuleInfoAnalysisInputLocation> moduleInputLocations, ClassCacheProvider cacheProvider) Creates a new instance of theJavaModuleView
class. -
Method Summary
Modifier and TypeMethodDescriptiongetClass
(ModulePackageName entryPackage, JavaClassType type) protected Optional<JavaSootClassSource>
getClassSource
(ClassType type) Returns theIdentifierFactory
for this view.getModuleClasses
(ModuleSignature moduleSignature) return the classes which belong to the moduleSignatureMethods inherited from class sootup.java.core.views.JavaView
buildClassFrom, getAnnotationClass, getCachedClassesCount, getClass, getClasses, getField, getMethod
Methods inherited from class sootup.core.views.AbstractView
getTypeHierarchy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sootup.core.views.View
getClassOrThrow
-
Constructor Details
-
JavaModuleView
public JavaModuleView(@Nonnull List<AnalysisInputLocation> inputLocations, @Nonnull List<ModuleInfoAnalysisInputLocation> moduleInputLocations) -
JavaModuleView
public JavaModuleView(@Nonnull List<AnalysisInputLocation> inputLocations, @Nonnull List<ModuleInfoAnalysisInputLocation> moduleInputLocations, @Nonnull ClassCacheProvider cacheProvider) Creates a new instance of theJavaModuleView
class.
-
-
Method Details
-
getModuleInfo
-
getClassSource
- Overrides:
getClassSource
in classJavaView
-
getClass
@Nonnull public Optional<JavaSootClass> getClass(@Nonnull ModulePackageName entryPackage, @Nonnull JavaClassType type) -
getModuleClasses
@Nonnull public Collection<JavaSootClass> getModuleClasses(@Nonnull ModuleSignature moduleSignature) return the classes which belong to the moduleSignature -
getIdentifierFactory
Description copied from interface:View
Returns theIdentifierFactory
for this view.- Specified by:
getIdentifierFactory
in interfaceView
- Overrides:
getIdentifierFactory
in classJavaView
-
getNamedModules
-