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
クラス 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 |
メソッドの概要 |
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 objectidentifier
- the name of the propertyi
- 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 objectidentifier
- the name of the propertyarg
- the value to set to the propertyi
- a bunch of information.
- 戻り値:
- a valid
VelPropertySet
, if it was found.
- 例外:
java.lang.Exception
- failed to create a valid VelPropertySet
.