Package org.reflections
Class Store
- java.lang.Object
-
- org.reflections.Store
-
public class Store extends java.lang.Object
stores metadata information in multimapsuse the different query methods (getXXX) to query the metadata
the query methods are string based, and does not cause the class loader to define the types
use
Reflections.getStore()
to access this store
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>>
storeMap
-
Constructor Summary
Constructors Modifier Constructor Description protected
Store()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
get(java.lang.Class<?> scannerClass, java.lang.String key)
get the values stored for the givenindex
andkeys
java.util.Set<java.lang.String>
get(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
get the values stored for the givenindex
andkeys
private java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
get(java.lang.String index)
get the multimap object for the givenindex
, otherwise throws aReflectionsException
java.util.Set<java.lang.String>
get(java.lang.String index, java.lang.String key)
get the values stored for the givenindex
andkeys
private java.util.Set<java.lang.String>
get(java.lang.String index, java.util.Collection<java.lang.String> keys)
get the values stored for the givenindex
andkeys
java.util.Set<java.lang.String>
getAll(java.lang.Class<?> scannerClass, java.lang.String key)
recursively get the values stored for the givenindex
andkeys
, not including keysjava.util.Set<java.lang.String>
getAll(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
recursively get the values stored for the givenindex
andkeys
, not including keysjava.util.Set<java.lang.String>
getAllIncluding(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
recursively get the values stored for the givenindex
andkeys
, including keysjava.util.Set<java.lang.String>
keys(java.lang.String index)
java.util.Set<java.lang.String>
keySet()
return all indices(package private) void
merge(Store store)
boolean
put(java.lang.Class<?> scannerClass, java.lang.String key, java.lang.String value)
boolean
put(java.lang.String index, java.lang.String key, java.lang.String value)
java.util.Set<java.lang.String>
values(java.lang.String index)
-
-
-
Method Detail
-
keySet
public java.util.Set<java.lang.String> keySet()
return all indices
-
get
private java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> get(java.lang.String index)
get the multimap object for the givenindex
, otherwise throws aReflectionsException
-
get
public java.util.Set<java.lang.String> get(java.lang.Class<?> scannerClass, java.lang.String key)
get the values stored for the givenindex
andkeys
-
get
public java.util.Set<java.lang.String> get(java.lang.String index, java.lang.String key)
get the values stored for the givenindex
andkeys
-
get
public java.util.Set<java.lang.String> get(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
get the values stored for the givenindex
andkeys
-
get
private java.util.Set<java.lang.String> get(java.lang.String index, java.util.Collection<java.lang.String> keys)
get the values stored for the givenindex
andkeys
-
getAllIncluding
public java.util.Set<java.lang.String> getAllIncluding(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
recursively get the values stored for the givenindex
andkeys
, including keys
-
getAll
public java.util.Set<java.lang.String> getAll(java.lang.Class<?> scannerClass, java.lang.String key)
recursively get the values stored for the givenindex
andkeys
, not including keys
-
getAll
public java.util.Set<java.lang.String> getAll(java.lang.Class<?> scannerClass, java.util.Collection<java.lang.String> keys)
recursively get the values stored for the givenindex
andkeys
, not including keys
-
keys
public java.util.Set<java.lang.String> keys(java.lang.String index)
-
values
public java.util.Set<java.lang.String> values(java.lang.String index)
-
put
public boolean put(java.lang.Class<?> scannerClass, java.lang.String key, java.lang.String value)
-
put
public boolean put(java.lang.String index, java.lang.String key, java.lang.String value)
-
merge
void merge(Store store)
-
-