public class TypeProxy<T extends Type>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TypeProxy.Notifier<T> |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Member> |
fieldRefs |
private java.util.List<ClassModel> |
implementations |
private java.lang.String |
name |
private TypeProxy.Notifier<T> |
notifier |
private java.util.List<Type> |
subTypeRefs |
private T |
value |
private boolean |
visited |
Constructor and Description |
---|
TypeProxy(TypeProxy.Notifier<T> notifier,
java.lang.String name)
Creates a new type proxy, this ctor is package private as many
other activities must be performed when a new proxy type is created.
|
Modifier and Type | Method and Description |
---|---|
static <U extends Type> |
adapter(java.util.Collection<TypeProxy<U>> source) |
void |
addFieldRef(FieldModel field) |
void |
addImplementation(ClassModel classModel) |
void |
addSubTypeRef(Type subType) |
T |
get() |
java.util.List<ClassModel> |
getImplementations() |
java.lang.String |
getName() |
java.util.List<Member> |
getRefs() |
java.util.List<Type> |
getSubTypeRefs() |
boolean |
isVisited() |
void |
set(T value) |
java.lang.String |
toString() |
void |
visited() |
private volatile boolean visited
private final java.lang.String name
private final TypeProxy.Notifier<T extends Type> notifier
private final java.util.List<Member> fieldRefs
private final java.util.List<Type> subTypeRefs
private final java.util.List<ClassModel> implementations
TypeProxy(TypeProxy.Notifier<T> notifier, java.lang.String name)
notifier
- notification handle to notify receiver the proxied
type has been resolvedname
- type namepublic java.lang.String toString()
toString
in class java.lang.Object
public void set(T value)
public T get()
public java.lang.String getName()
public void addFieldRef(FieldModel field)
public java.util.List<Member> getRefs()
public void addSubTypeRef(Type subType)
public java.util.List<Type> getSubTypeRefs()
public void addImplementation(ClassModel classModel)
public java.util.List<ClassModel> getImplementations()
public static <U extends Type> java.util.Collection<U> adapter(java.util.Collection<TypeProxy<U>> source)
public void visited()
public boolean isVisited()