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

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

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

Implementation of VelPropertyGet that gets length from arrays.

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

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

public PublicFieldUberspect.ArrayLengthGetter()
Constructor.

メソッドの詳細

invoke

public java.lang.Object invoke(java.lang.Object o)
                        throws java.lang.Exception
Returns the length of the array.

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

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 "array length getter", since there is no method.

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