Top Description Fields Constructors Methods
org.glassfish.hk2.classmodel.reflect.impl

public Class TypeImpl

extends AnnotatedElementImpl
implements Type
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.classmodel.reflect.Type, org.glassfish.hk2.classmodel.reflect.AnnotatedElement
Known Direct Subclasses
org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
Imports
org.glassfish.hk2.classmodel.reflect.*, java.io.File, .IOException, java.util.*, java.util.concurrent.locks.ReentrantLock, java.net.URI

Implementation of the Type abstraction.
Author
Jerome Dochez

Field Summary

Modifier and TypeField and Description
private final Set<URI>
private final ReentrantLock
private final List<MethodModel>
private final TypeProxy<Type>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
public Collection<URI>
public Collection<MethodModel>
getMethods()

Implements org.glassfish.hk2.classmodel.reflect.Type.getMethods.

Returns an unmodifiable collection of methods that are declared in this type.

pack-priv TypeProxy<Type>
public Collection<Member>
getReferences()

Implements org.glassfish.hk2.classmodel.reflect.Type.getReferences.

Returns a unmodifiable collection of this type references.

public boolean
wasDefinedIn(Collection<URI> uris)

Implements org.glassfish.hk2.classmodel.reflect.Type.wasDefinedIn.

Determine if this type was defined in one of the passed URI or not

Inherited from org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl:
addAnnotationgetAnnotationgetAnnotationsgetNameisApplicationClasssetApplicationClassshortDesctoString

Field Detail

definingURIsback to summary
private final Set<URI> definingURIs
lockback to summary
private final ReentrantLock lock

Hides org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl.lock.

methodsback to summary
private final List<MethodModel> methods
sinkback to summary
private final TypeProxy<Type> sink

Constructor Detail

TypeImplback to summary
public TypeImpl(String name, TypeProxy<Type> sink)

Method Detail

addDefiningURIback to summary
pack-priv void addDefiningURI(URI uri)
addMethodback to summary
pack-priv void addMethod(MethodModelImpl m)
getDefiningURIsback to summary
public Collection<URI> getDefiningURIs()

Implements org.glassfish.hk2.classmodel.reflect.Type.getDefiningURIs.

Doc from org.glassfish.hk2.classmodel.reflect.Type.getDefiningURIs.

Returns the defining URIs

Annotations
@Override
getMethodsback to summary
public Collection<MethodModel> getMethods()

Implements org.glassfish.hk2.classmodel.reflect.Type.getMethods.

Doc from org.glassfish.hk2.classmodel.reflect.Type.getMethods.

Returns an unmodifiable collection of methods that are declared in this type.

Annotations
@Override
getProxyback to summary
pack-priv TypeProxy<Type> getProxy()
getReferencesback to summary
public Collection<Member> getReferences()

Implements org.glassfish.hk2.classmodel.reflect.Type.getReferences.

Doc from org.glassfish.hk2.classmodel.reflect.Type.getReferences.

Returns a unmodifiable collection of this type references. A reference can be a field declaration in a type which type is this instance or it can be a method declaration which return type is this type

Annotations
@Override
wasDefinedInback to summary
public boolean wasDefinedIn(Collection<URI> uris)

Implements org.glassfish.hk2.classmodel.reflect.Type.wasDefinedIn.

Doc from org.glassfish.hk2.classmodel.reflect.Type.wasDefinedIn.

Determine if this type was defined in one of the passed URI or not

Annotations
@Override