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

java.lang.Object
  上位を拡張 org.apache.velocity.util.introspection.UberspectImpl
      上位を拡張 org.apache.velocity.tools.generic.introspection.PublicFieldUberspect
すべての実装されたインタフェース:
org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable

public class PublicFieldUberspect
extends org.apache.velocity.util.introspection.UberspectImpl

Uberspect implementation that exposes public fields. Also exposes the explicit "length" field of arrays.

To use, tell Velocity to use this class for introspection by adding the following to your velocity.properties:
runtime.introspector.uberspect = org.apache.velocity.tools.generic.introspection.PublicFieldUberspect

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

入れ子のクラスの概要
protected  class PublicFieldUberspect.ArrayLengthGetter
          Implementation of VelPropertyGet that gets length from arrays.
protected  class PublicFieldUberspect.PublicFieldGetter
          Implementation of VelPropertyGet that gets from public fields.
protected  class PublicFieldUberspect.PublicFieldSetter
          Implementation of VelPropertySet that sets to public fields.
 
クラス org.apache.velocity.util.introspection.UberspectImpl から継承された入れ子のクラス/インタフェース
org.apache.velocity.util.introspection.UberspectImpl.VelGetterImpl, org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl, org.apache.velocity.util.introspection.UberspectImpl.VelSetterImpl
 
フィールドの概要
 
クラス org.apache.velocity.util.introspection.UberspectImpl から継承されたフィールド
introspector, log
 
コンストラクタの概要
PublicFieldUberspect()
          Default constructor.
 
メソッドの概要
 org.apache.velocity.util.introspection.VelPropertyGet getPropertyGet(java.lang.Object obj, java.lang.String identifier, org.apache.velocity.util.introspection.Info i)
          Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie).
 org.apache.velocity.util.introspection.VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, org.apache.velocity.util.introspection.Info i)
          Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir").
 
クラス org.apache.velocity.util.introspection.UberspectImpl から継承されたメソッド
getIterator, getMethod, init, setLog, setRuntimeLogger
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PublicFieldUberspect

public PublicFieldUberspect()
Default constructor.

メソッドの詳細

getPropertyGet

public org.apache.velocity.util.introspection.VelPropertyGet getPropertyGet(java.lang.Object obj,
                                                                            java.lang.String identifier,
                                                                            org.apache.velocity.util.introspection.Info i)
                                                                     throws java.lang.Exception
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie).
Returns a special VelPropertyGet for the length property of arrays. Otherwise tries the regular routine. If a getter was not found, returns a VelPropertyGet that gets from public fields.

定義:
インタフェース org.apache.velocity.util.introspection.Uberspect 内の getPropertyGet
オーバーライド:
クラス org.apache.velocity.util.introspection.UberspectImpl 内の getPropertyGet
パラメータ:
obj - the object
identifier - the name of the property
i - a bunch of information.
戻り値:
a valid VelPropertyGet, if it was found.
例外:
java.lang.Exception - failed to create a valid VelPropertyGet.

getPropertySet

public org.apache.velocity.util.introspection.VelPropertySet getPropertySet(java.lang.Object obj,
                                                                            java.lang.String identifier,
                                                                            java.lang.Object arg,
                                                                            org.apache.velocity.util.introspection.Info i)
                                                                     throws java.lang.Exception
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir").
First tries the regular routine. If a setter was not found, returns a VelPropertySet that sets to public fields.

定義:
インタフェース org.apache.velocity.util.introspection.Uberspect 内の getPropertySet
オーバーライド:
クラス org.apache.velocity.util.introspection.UberspectImpl 内の getPropertySet
パラメータ:
obj - the object
identifier - the name of the property
arg - the value to set to the property
i - a bunch of information.
戻り値:
a valid VelPropertySet, if it was found.
例外:
java.lang.Exception - failed to create a valid VelPropertySet.