cprover
java_class_loader_limit.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: limit class path loading
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_JAVA_BYTECODE_JAVA_CLASS_LOADER_LIMIT_H
13 #define CPROVER_JAVA_BYTECODE_JAVA_CLASS_LOADER_LIMIT_H
14 
15 #include <set>
16 #include <regex>
17 
18 #include <util/irep.h>
19 #include <util/message.h>
20 
22 {
25  std::regex regex_matcher;
26  std::set<std::string> set_matcher;
27 
28  void setup_class_load_limit(const std::string &);
29 
30 public:
33  const std::string &java_cp_include_files)
35  {
36  setup_class_load_limit(java_cp_include_files);
37  }
38 
39  bool load_class_file(const std::string &class_file_name);
40 };
41 
42 #endif
std::set< std::string > set_matcher
java_class_loader_limitt(message_handlert &message_handler, const std::string &java_cp_include_files)
bool load_class_file(const std::string &class_file_name)
bool use_regex_match
Whether to use regex_matcher instead of set_matcher.
void setup_class_load_limit(const std::string &)
initializes class with either regex matcher or match set
message_handlert * message_handler
Definition: message.h:342