org.dyndns.nuda.tools.util
クラス ReflectUtil.AttributeContext

java.lang.Object
  上位を拡張 org.dyndns.nuda.tools.util.ReflectUtil.AttributeContext
すべての実装されたインタフェース:
java.lang.Comparable<ReflectUtil.AttributeContext>, java.util.Comparator<ReflectUtil.AttributeContext>
含まれているクラス:
ReflectUtil

public static class ReflectUtil.AttributeContext
extends java.lang.Object
implements java.util.Comparator<ReflectUtil.AttributeContext>, java.lang.Comparable<ReflectUtil.AttributeContext>


フィールドの概要
protected  java.lang.String attributeName
           
protected  boolean hasGetter
           
protected  boolean hasSetter
           
protected  boolean isBoolPresend
           
protected  java.lang.Class<?> presentedClass
           
 
コンストラクタの概要
ReflectUtil.AttributeContext(java.lang.reflect.Method method, java.lang.Class<?> cls)
           
 
メソッドの概要
 int compare(ReflectUtil.AttributeContext o1, ReflectUtil.AttributeContext o2)
           
 int compareTo(ReflectUtil.AttributeContext o)
           
 boolean equals(java.lang.Object obj)
           
static ReflectUtil.AttributeContext[] getAccessorSummary(java.lang.Class<?> cls)
          引数に指定されたクラスオブジェクトをもとにアクセッサメソッドの一覧を返します
 java.lang.String getAttributeName()
           
static java.util.Set<ReflectUtil.AttributeContext> getContexts(java.lang.Class<?> cls)
           
 java.lang.String getGetterBoolName()
           
 java.lang.String getGetterName()
           
static ReflectUtil.AttributeContext[] getGetterSummary(java.lang.Class<?> cls)
          引数に指定されたクラスオブジェクトをもとにゲッタメソッドの一覧を返します
 java.lang.Object getInitialValue()
           
static ReflectUtil.AttributeContext[] getOperatorSummary(java.lang.Class<?> cls)
          引数に指定されたクラスオブジェクトをもとにオペレータ(セッタメソッドでもゲッタメソッドでもないメソッド)の一覧を返します
 java.lang.Class<?> getPresentedClass()
           
 java.lang.String getSetterName()
           
static ReflectUtil.AttributeContext[] getSetterSummary(java.lang.Class<?> cls)
          引数に指定されたクラスオブジェクトを元にセッタメソッドの一覧を返します
 int hashCode()
           
 boolean isBoolPresend()
           
 boolean isHasGetter()
           
 boolean isHasSetter()
           
 boolean isValidProperty()
          対象のメソッドが正常なプロパティメソッドか検査します
 java.lang.String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

attributeName

protected java.lang.String attributeName

presentedClass

protected java.lang.Class<?> presentedClass

isBoolPresend

protected boolean isBoolPresend

hasGetter

protected boolean hasGetter

hasSetter

protected boolean hasSetter
コンストラクタの詳細

ReflectUtil.AttributeContext

public ReflectUtil.AttributeContext(java.lang.reflect.Method method,
                                    java.lang.Class<?> cls)
メソッドの詳細

getAttributeName

public java.lang.String getAttributeName()

getGetterName

public java.lang.String getGetterName()

getGetterBoolName

public java.lang.String getGetterBoolName()

getSetterName

public java.lang.String getSetterName()

isBoolPresend

public boolean isBoolPresend()

isHasGetter

public boolean isHasGetter()

isHasSetter

public boolean isHasSetter()

getPresentedClass

public java.lang.Class<?> getPresentedClass()

getInitialValue

public java.lang.Object getInitialValue()

getSetterSummary

public static ReflectUtil.AttributeContext[] getSetterSummary(java.lang.Class<?> cls)
引数に指定されたクラスオブジェクトを元にセッタメソッドの一覧を返します

パラメータ:
cls - 解析対象クラスオブジェクト
戻り値:
セッタメソッド一覧

getGetterSummary

public static ReflectUtil.AttributeContext[] getGetterSummary(java.lang.Class<?> cls)
引数に指定されたクラスオブジェクトをもとにゲッタメソッドの一覧を返します

パラメータ:
cls - 解析対象クラスオブジェクト
戻り値:
ゲッタメソッド一覧

getAccessorSummary

public static ReflectUtil.AttributeContext[] getAccessorSummary(java.lang.Class<?> cls)
引数に指定されたクラスオブジェクトをもとにアクセッサメソッドの一覧を返します

パラメータ:
cls - 解析対象クラスオブジェクト
戻り値:
アクセッサメソッド一覧

getOperatorSummary

public static ReflectUtil.AttributeContext[] getOperatorSummary(java.lang.Class<?> cls)
引数に指定されたクラスオブジェクトをもとにオペレータ(セッタメソッドでもゲッタメソッドでもないメソッド)の一覧を返します

パラメータ:
cls - 解析対象クラスオブジェクト
戻り値:
オペレータメソッド一覧

getContexts

public static java.util.Set<ReflectUtil.AttributeContext> getContexts(java.lang.Class<?> cls)

isValidProperty

public boolean isValidProperty()
対象のメソッドが正常なプロパティメソッドか検査します

戻り値:

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

equals

public boolean equals(java.lang.Object obj)
定義:
インタフェース java.util.Comparator<ReflectUtil.AttributeContext> 内の equals
オーバーライド:
クラス java.lang.Object 内の equals

compare

public int compare(ReflectUtil.AttributeContext o1,
                   ReflectUtil.AttributeContext o2)
定義:
インタフェース java.util.Comparator<ReflectUtil.AttributeContext> 内の compare

compareTo

public int compareTo(ReflectUtil.AttributeContext o)
定義:
インタフェース java.lang.Comparable<ReflectUtil.AttributeContext> 内の compareTo