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

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

protected class PublicFieldUberspect.PublicFieldGetter
extends java.lang.Object
implements org.apache.velocity.util.introspection.VelPropertyGet

Implementation of VelPropertyGet that gets from public fields.

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

コンストラクタの概要
PublicFieldUberspect.PublicFieldGetter(java.lang.reflect.Field field)
          Constructor.
 
メソッドの概要
 java.lang.String getMethodName()
          Returns "public field getter", since there is no method.
 java.lang.Object invoke(java.lang.Object o)
          Returns the value of 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.PublicFieldGetter

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

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

invoke

public java.lang.Object invoke(java.lang.Object o)
                        throws java.lang.Exception
Returns the value of the public field.

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

isCacheable

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

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

getMethodName

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

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