Modifier and Type | Class and Description |
---|---|
static interface |
TypesCtr.ProxyTask |
Modifier and Type | Field and Description |
---|---|
private java.util.Stack<TypeProxy> |
nonVisited
Stack on type proxy as they have been instantiated in FILO order.
|
private java.util.concurrent.ConcurrentMap<java.lang.Class,java.util.concurrent.ConcurrentMap<java.lang.String,TypeProxy<Type>>> |
storage
Storage indexed by TYPE : interface | class | annotation and then by name.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,TypeProxy<Type>> |
unknownTypesStorage
Map of encountered types which we don't know if it is an interface, class or annotation
|
Constructor and Description |
---|
TypesCtr() |
Modifier and Type | Method and Description |
---|---|
void |
clearNonVisitedEntries() |
java.util.Collection<Type> |
getAllTypes()
Returns a unmodifiable list of collected types obtained during the parsing activity
|
<T extends Type> |
getBy(java.lang.Class<T> type,
java.lang.String name)
Returns a Model instance given a name
|
Type |
getBy(java.lang.String name)
Returns a Type instance given a name
|
TypeProxy<Type> |
getHolder(java.lang.String name) |
<T extends Type> |
getHolder(java.lang.String name,
java.lang.Class<T> type) |
void |
onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)
Runs a task on each non visited types parsing discovered.
|
private final java.util.concurrent.ConcurrentMap<java.lang.Class,java.util.concurrent.ConcurrentMap<java.lang.String,TypeProxy<Type>>> storage
private final java.util.concurrent.ConcurrentMap<java.lang.String,TypeProxy<Type>> unknownTypesStorage
private final java.util.Stack<TypeProxy> nonVisited
public Type getBy(java.lang.String name)
Types
public <T extends Type> T getBy(java.lang.Class<T> type, java.lang.String name)
Types
getBy
in interface Types
type
- type of the requested model (see ExtensibleType
derivatives)name
- the requested type namepublic <T extends Type> TypeProxy<Type> getHolder(java.lang.String name, java.lang.Class<T> type)
public void onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)
proxyTask
- the task to run on each non visited type.public void clearNonVisitedEntries()
public java.util.Collection<Type> getAllTypes()
Types
getAllTypes
in interface Types