|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.util.reflection.plain.PlainReflectionField
public class PlainReflectionField
A plain implemenation of ReflectionField
that simply delegates operations to Field.
| Constructor Summary | |
|---|---|
PlainReflectionField(Field field)
|
|
| Method Summary | |
|---|---|
Object |
get(Object obj)
|
Class<?> |
getDeclaringClass()
Returns the Class object representing the class or interface
that declares the field represented by this Field object. |
Field |
getField()
Returns the wrapped field. |
Type |
getGenericType()
Returns a Type object that represents the declared type for the field represented by this Field object. |
int |
getModifiers()
Returns the Java language modifiers for the field represented by this Field object, as an integer. |
String |
getName()
Returns the name of the field represented by this Field object. |
Class<?> |
getType()
Returns a Class object that identifies the
declared type for the field represented by this
Field object. |
void |
set(Object obj,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlainReflectionField(Field field)
| Method Detail |
|---|
public Object get(Object obj)
throws IllegalArgumentException,
IllegalAccessException
get in interface ReflectionFieldIllegalArgumentException
IllegalAccessException
public void set(Object obj,
Object value)
throws IllegalArgumentException,
IllegalAccessException
set in interface ReflectionFieldIllegalArgumentException
IllegalAccessExceptionpublic String getName()
ReflectionFieldField object.
getName in interface ReflectionFieldpublic Class<?> getDeclaringClass()
ReflectionFieldClass object representing the class or interface
that declares the field represented by this Field object.
getDeclaringClass in interface ReflectionFieldpublic int getModifiers()
ReflectionFieldField object, as an integer. The Modifier class should
be used to decode the modifiers.
getModifiers in interface ReflectionFieldModifierpublic Class<?> getType()
ReflectionFieldClass object that identifies the
declared type for the field represented by this
Field object.
getType in interface ReflectionFieldClass object identifying the declared
type of the field represented by this objectpublic Type getGenericType()
ReflectionFieldIf the Type is a parameterized type, the Type object returned must accurately reflect the actual type parameters used in the source code.
If an the type of the underlying field is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
getGenericType in interface ReflectionFieldpublic Field getField()
ReflectionField
getField in interface ReflectionField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||