org.glassfish.hk2.classmodel.reflect.impl
Class TypeProxy<T extends Type>

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.TypeProxy<T>

public class TypeProxy<T extends Type>
extends Object

Proxy for types, used in place until the type can be properly instantiated. Proxy type also holds all incoming reference to the type.

Author:
Jerome Dochez

Nested Class Summary
static interface TypeProxy.Notifier<T>
           
 
Method Summary
static
<U extends Type>
Collection<U>
adapter(Collection<TypeProxy<U>> source)
           
 void addFieldRef(FieldModel field)
           
 void addImplementation(ClassModel classModel)
           
 void addSubTypeRef(Type subType)
           
 T get()
           
 List<ClassModel> getImplementations()
           
 String getName()
           
 List<Member> getRefs()
           
 List<Type> getSubTypeRefs()
           
 boolean isVisited()
           
 void set(T value)
           
 String toString()
           
 void visited()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

set

public void set(T value)

get

public T get()

getName

public String getName()

addFieldRef

public void addFieldRef(FieldModel field)

getRefs

public List<Member> getRefs()

addSubTypeRef

public void addSubTypeRef(Type subType)

getSubTypeRefs

public List<Type> getSubTypeRefs()

addImplementation

public void addImplementation(ClassModel classModel)

getImplementations

public List<ClassModel> getImplementations()

adapter

public static <U extends Type> Collection<U> adapter(Collection<TypeProxy<U>> source)

visited

public void visited()

isVisited

public boolean isVisited()


Copyright © 2013 Oracle Corporation. All Rights Reserved.