|
static void | init () |
|
static void | put (String key, Object value) |
|
static Object | get (CtClass<?> clazz, String key) |
|
static Object | get (String key) |
|
◆ get() [1/2]
static Object ppt4j.analysis.java.LibraryConstants.get |
( |
CtClass<?> | clazz, |
|
|
String | key ) |
|
static |
Retrieves an object associated with the provided key from a cache. If the provided class is not already cached, it adds the class to the cache and returns the object associated with the key. If the class is already cached, it directly returns the object associated with the key from the cache.
- Parameters
-
clazz | the class to retrieve the object for |
key | the key associated with the object in the cache |
- Returns
- the object associated with the key from the cache
◆ get() [2/2]
static Object ppt4j.analysis.java.LibraryConstants.get |
( |
String | key | ) |
|
|
static |
Retrieves the value associated with the specified key from the map.
- Parameters
-
key | the key whose associated value is to be returned |
- Returns
- the value to which the specified key is mapped, or null if the map contains no mapping for the key
◆ init()
static void ppt4j.analysis.java.LibraryConstants.init |
( |
| ) |
|
|
static |
Initializes the PropertyUtils class by putting all classes in the 'classes' array into the LibraryConstants map. If the 'classes' array is null, a RuntimeException is thrown indicating that PropertyUtils was not initialized correctly.
◆ put()
static void ppt4j.analysis.java.LibraryConstants.put |
( |
String | key, |
|
|
Object | value ) |
|
static |
Adds the specified key-value pair to the map.
- Parameters
-
key | the key to be added to the map |
value | the value associated with the key |
The documentation for this class was generated from the following file: