org.apache.velocity.tools.generic.introspection
クラス PublicFieldUberspect.PublicFieldSetter

java.lang.Object
  上位を拡張 org.apache.velocity.tools.generic.introspection.PublicFieldUberspect.PublicFieldSetter
すべての実装されたインタフェース:
org.apache.velocity.util.introspection.VelPropertySet
含まれているクラス:
PublicFieldUberspect

protected class PublicFieldUberspect.PublicFieldSetter
extends java.lang.Object
implements org.apache.velocity.util.introspection.VelPropertySet

Implementation of VelPropertySet that sets to public fields.

バージョン:
$Id: $
作成者:
Shinobu Kawai

コンストラクタの概要
PublicFieldUberspect.PublicFieldSetter(java.lang.reflect.Field field)
          Constructor.
 
メソッドの概要
 java.lang.String getMethodName()
          Returns "public field setter", since there is no method.
 java.lang.Object invoke(java.lang.Object o, java.lang.Object value)
          Sets the value to the public field.
 boolean isCacheable()
          This class is cacheable, so it returns true.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PublicFieldUberspect.PublicFieldSetter

public PublicFieldUberspect.PublicFieldSetter(java.lang.reflect.Field field)
Constructor.

パラメータ:
field - The Field object representing the property.
メソッドの詳細

invoke

public java.lang.Object invoke(java.lang.Object o,
                               java.lang.Object value)
                        throws java.lang.Exception
Sets the value to the public field.

定義:
インタフェース org.apache.velocity.util.introspection.VelPropertySet 内の invoke
パラメータ:
o - the object
value - the value to set
戻り値:
always null
例外:
java.lang.Exception - failed to set the value to the object

isCacheable

public boolean isCacheable()
This class is cacheable, so it returns true.

定義:
インタフェース org.apache.velocity.util.introspection.VelPropertySet 内の isCacheable
戻り値:
true.

getMethodName

public java.lang.String getMethodName()
Returns "public field setter", since there is no method.

定義:
インタフェース org.apache.velocity.util.introspection.VelPropertySet 内の getMethodName
戻り値:
"public field setter"