|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mtzky.reflect.PropDesc
public class PropDesc
Descriptors for Property (Getter, Setter ,
and public Field).
| コンストラクタの概要 | |
|---|---|
PropDesc(java.lang.String name)
|
|
| メソッドの概要 | ||
|---|---|---|
void |
addAnnotation(java.lang.annotation.Annotation annotation)
|
|
void |
addAnnotations(java.lang.annotation.Annotation[] annotations)
|
|
|
get(java.lang.Object obj)
Gets a property value from the object. |
|
|
getAnnotation(java.lang.Class<T> annotationClass)
|
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
|
java.lang.String |
getName()
|
|
java.lang.Class<?> |
getType()
|
|
boolean |
hasField()
|
|
boolean |
hasGetter()
|
|
boolean |
hasSetter()
|
|
void |
set(java.lang.Object obj,
java.lang.Object value)
Sets a property value to the object. |
|
void |
setField(java.lang.reflect.Field field)
|
|
void |
setGetter(java.lang.reflect.Method getter)
|
|
void |
setSetter(java.lang.reflect.Method setter)
|
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public PropDesc(java.lang.String name)
| メソッドの詳細 |
|---|
public <T> T get(java.lang.Object obj)
Gets a property value from the object. Returns null if an
Exception occurred.
T - obj - the instance to get property value
InvocationTargetRuntimeException - if failed to get
public void set(java.lang.Object obj,
java.lang.Object value)
Sets a property value to the object. Returns false if an
Exception occurred.
obj - the instance to set property valuevalue -
InvocationTargetRuntimeException - if failed to setpublic java.lang.Class<?> getType()
public java.lang.String getName()
public boolean hasGetter()
public boolean hasSetter()
public boolean hasField()
public void setGetter(java.lang.reflect.Method getter)
public void setSetter(java.lang.reflect.Method setter)
public void setField(java.lang.reflect.Field field)
public java.lang.annotation.Annotation[] getAnnotations()
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
public void addAnnotations(java.lang.annotation.Annotation[] annotations)
public void addAnnotation(java.lang.annotation.Annotation annotation)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||