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
ConstructorsConstructorDescriptionJavaModuleView(@NonNull List<AnalysisInputLocation> inputLocations, @NonNull List<ModuleInfoAnalysisInputLocation> moduleInputLocations) JavaModuleView(@NonNull List<AnalysisInputLocation> inputLocations, @NonNull List<ModuleInfoAnalysisInputLocation> moduleInputLocations, @NonNull ClassCacheProvider cacheProvider) Creates a new instance of theJavaModuleViewclass. -
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<JavaSootClass>getClass(@NonNull ModulePackageName entryPackage, @NonNull JavaClassType type) protected @NonNull Optional<JavaSootClassSource>getClassSource(@NonNull ClassType type) @NonNull JavaModuleIdentifierFactoryReturns theIdentifierFactoryfor this view.@NonNull Collection<JavaSootClass>getModuleClasses(@NonNull ModuleSignature moduleSignature) return the classes which belong to the moduleSignature@NonNull Optional<JavaModuleInfo>@NonNull Set<ModuleSignature>Methods inherited from class sootup.java.core.views.JavaView
buildClassFrom, getCachedClassesCount, getClass, getClasses, getField, getMethodMethods inherited from class sootup.core.views.AbstractView
getTypeHierarchyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theJavaModuleViewclass.
-
-
Method Details
-
getModuleInfo
-
getClassSource
- Overrides:
getClassSourcein classJavaView
-
getClass
public @NonNull Optional<JavaSootClass> getClass(@NonNull ModulePackageName entryPackage, @NonNull JavaClassType type) -
getModuleClasses
public @NonNull Collection<JavaSootClass> getModuleClasses(@NonNull ModuleSignature moduleSignature) return the classes which belong to the moduleSignature -
getIdentifierFactory
Description copied from interface:ViewReturns theIdentifierFactoryfor this view.- Specified by:
getIdentifierFactoryin interfaceView- Overrides:
getIdentifierFactoryin classJavaView
-
getNamedModules
-