org.jboss.webbeans.introspector.jlr
Class AbstractAnnotatedType<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,java.lang.Class<T>>
      extended by org.jboss.webbeans.introspector.jlr.AbstractAnnotatedType<T>
Type Parameters:
T -
All Implemented Interfaces:
AnnotatedItem<T,java.lang.Class<T>>, AnnotatedType<T>
Direct Known Subclasses:
AnnotatedAnnotationImpl, AnnotatedClassImpl

public abstract class AbstractAnnotatedType<T>
extends AbstractAnnotatedItem<T,java.lang.Class<T>>
implements AnnotatedType<T>

Represents an abstract annotated type This class is immutable, and therefore threadsafe

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
AbstractAnnotatedType(AnnotationStore annotatedItemHelper, java.lang.Class<T> rawType, java.lang.reflect.Type type, ClassTransformer classTransformer)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the type
 java.lang.String getSimpleName()
           
 AnnotatedClass<?> getSuperclass()
          Gets the superclass abstraction of the type
 boolean isEquivalent(java.lang.Class<?> clazz)
          Check if this is equivalent to a java class
 boolean isFinal()
          Indicates if the type if final
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if the type is static
 java.lang.String toString()
          Gets a string representation of the type
 
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getDelegate, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, isProxyable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isParameterizedType, isProxyable
 

Constructor Detail

AbstractAnnotatedType

public AbstractAnnotatedType(AnnotationStore annotatedItemHelper,
                             java.lang.Class<T> rawType,
                             java.lang.reflect.Type type,
                             ClassTransformer classTransformer)
Constructor

Parameters:
annotationMap - The annotation map
Method Detail

isStatic

public boolean isStatic()
Indicates if the type is static

Specified by:
isStatic in interface AnnotatedItem<T,java.lang.Class<T>>
Returns:
True if static, false otherwise
See Also:
AnnotatedItem.isStatic()

isFinal

public boolean isFinal()
Indicates if the type if final

Specified by:
isFinal in interface AnnotatedItem<T,java.lang.Class<T>>
Returns:
True if final, false otherwise
See Also:
AnnotatedItem.isFinal()

isPublic

public boolean isPublic()
Description copied from interface: AnnotatedItem
Indicates if this annotated item is public

Specified by:
isPublic in interface AnnotatedItem<T,java.lang.Class<T>>
Returns:
if public, returns true

getName

public java.lang.String getName()
Gets the name of the type

Specified by:
getName in interface AnnotatedItem<T,java.lang.Class<T>>
Returns:
The name
See Also:
AnnotatedItem.getName()

getSuperclass

public AnnotatedClass<?> getSuperclass()
Gets the superclass abstraction of the type

Specified by:
getSuperclass in interface AnnotatedType<T>
Returns:
The superclass abstraction

isEquivalent

public boolean isEquivalent(java.lang.Class<?> clazz)
Description copied from interface: AnnotatedType
Check if this is equivalent to a java class

Specified by:
isEquivalent in interface AnnotatedType<T>
Parameters:
clazz - The Java class
Returns:
true if equivalent

toString

public java.lang.String toString()
Gets a string representation of the type

Overrides:
toString in class AbstractAnnotatedItem<T,java.lang.Class<T>>
Returns:
A string representation

getSimpleName

public java.lang.String getSimpleName()
Specified by:
getSimpleName in interface AnnotatedType<T>


Copyright © 2011. All Rights Reserved.