|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember<T,java.lang.reflect.Field>
org.jboss.webbeans.introspector.jlr.AnnotatedFieldImpl<T>
T
- public class AnnotatedFieldImpl<T>
Represents an annotated field This class is immutable, and therefore threadsafe
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
protected |
AnnotatedFieldImpl(java.lang.reflect.Field field,
AnnotatedType<?> declaringClass)
Constructor Initializes the superclass with the built annotation map and detects the type arguments |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
T |
get(java.lang.Object instance)
|
java.lang.reflect.Field |
getAnnotatedField()
Gets the underlying field |
AnnotatedType<?> |
getDeclaringClass()
Gets the abstracted declaring class |
java.lang.reflect.Field |
getDelegate()
|
java.lang.String |
getPropertyName()
Gets the property name |
int |
hashCode()
Gets the hash code of the actual type |
void |
set(java.lang.Object instance,
java.lang.Object value)
Injects an instance |
void |
setOnInstance(java.lang.Object instance,
java.lang.Object value)
|
java.lang.String |
toString()
Gets a string representation of the field |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
---|
getMember, getName, getValue, isFinal, isPublic, isStatic, isTransient |
Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getRawType, getType, 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.AnnotatedField |
---|
isTransient |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
---|
getMember |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic |
Constructor Detail |
---|
protected AnnotatedFieldImpl(java.lang.reflect.Field field, AnnotatedType<?> declaringClass)
field
- The actual fielddeclaringClass
- The abstraction of the declaring classMethod Detail |
---|
public java.lang.reflect.Field getAnnotatedField()
getAnnotatedField
in interface AnnotatedField<T>
public java.lang.reflect.Field getDelegate()
getDelegate
in class AbstractAnnotatedItem<T,java.lang.reflect.Field>
public void set(java.lang.Object instance, java.lang.Object value) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
AnnotatedField
set
in interface AnnotatedField<T>
instance
- The instance to inject intovalue
- The value to inject
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public void setOnInstance(java.lang.Object instance, java.lang.Object value) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.NoSuchFieldException
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
public T get(java.lang.Object instance)
get
in interface AnnotatedField<T>
public java.lang.String getPropertyName()
getPropertyName
in interface AnnotatedField<T>
AnnotatedItem.getName()
public AnnotatedType<?> getDeclaringClass()
getDeclaringClass
in interface AnnotatedField<T>
getDeclaringClass
in interface AnnotatedMember<T,java.lang.reflect.Field>
AnnotatedField.getDeclaringClass()
public java.lang.String toString()
toString
in class AbstractAnnotatedMember<T,java.lang.reflect.Field>
public boolean equals(java.lang.Object other)
AbstractAnnotatedItem
equals
in class AbstractAnnotatedItem<T,java.lang.reflect.Field>
other
- The other item
public int hashCode()
AbstractAnnotatedItem
hashCode
in class AbstractAnnotatedItem<T,java.lang.reflect.Field>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |