You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
open Javalib_pack
|
|
open Sawja_pack
|
|
|
|
(** Jar file containing the models *)
|
|
val models_jar : string ref
|
|
|
|
(** Adds the set of procnames for the models of Java libraries so that methods with similar names are skipped during the capture *)
|
|
val add_models : string -> unit
|
|
|
|
(** Check if there is a model for the given procname *)
|
|
val is_model : Procname.t -> bool
|
|
|
|
val set_verbose_out: string -> unit
|
|
|
|
(** create a source file from an absolute path. Source files are relative if the project root is specified and absolute otherwise *)
|
|
val java_source_file_from_path : string -> DB.source_file
|
|
|
|
val split_classpath : string -> string list
|
|
|
|
(** load the list of source files and the list of classes from the javac verbose file *)
|
|
val load_sources_and_classes : unit ->
|
|
string * DB.source_file Utils.StringMap.t * JBasics.ClassSet.t
|
|
|
|
type classmap = JCode.jcode Javalib.interface_or_class JBasics.ClassMap.t
|
|
|
|
type program
|
|
|
|
val get_classmap : program -> classmap
|
|
|
|
val get_models : program -> classmap
|
|
|
|
(** load a java program *)
|
|
val load_program : string -> JBasics.ClassSet.t -> DB.source_file Utils.StringMap.t -> program
|
|
|
|
(** retrive a Java node from the classname *)
|
|
val lookup_node : JBasics.class_name -> program -> JCode.jcode Javalib.interface_or_class option
|
|
|
|
(** [collect_classes cmap filename] adds to [cmap] the classes found in the jar file [filename] *)
|
|
val collect_classes : classmap -> string -> classmap
|