javax.enterprise.inject.spi
Interface AnnotatedType<X>

Type Parameters:
X - the type
All Superinterfaces:
Annotated

public interface AnnotatedType<X>
extends Annotated

Represents a Java class or interface.

Author:
Gavin King, Pete Muir
See Also:
Class

Method Summary
 java.util.Set<AnnotatedConstructor<X>> getConstructors()
          Get the constructors of the type.
 java.util.Set<AnnotatedField<? super X>> getFields()
          Get the fields of the type.
 java.lang.Class<X> getJavaClass()
          Get the underlying Class.
 java.util.Set<AnnotatedMethod<? super X>> getMethods()
          Get the methods of the type.
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Method Detail

getJavaClass

java.lang.Class<X> getJavaClass()

Get the underlying Class.

Returns:
the Class

getConstructors

java.util.Set<AnnotatedConstructor<X>> getConstructors()

Get the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.

Returns:
the constructors, or an empty set if none are defined

getMethods

java.util.Set<AnnotatedMethod<? super X>> getMethods()

Get the methods of the type.

Returns:
the methods, or an empty set if none are defined

getFields

java.util.Set<AnnotatedField<? super X>> getFields()

Get the fields of the type.

Returns:
the fields, or an empty set if none are defined


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41