|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.tools.generic.introspection.PublicFieldUberspect.ArrayLengthGetter
protected class PublicFieldUberspect.ArrayLengthGetter
Implementation of VelPropertyGet that gets length from arrays.
| Constructor Summary | |
|---|---|
PublicFieldUberspect.ArrayLengthGetter()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublicFieldUberspect.ArrayLengthGetter()
| Method Detail |
|---|
public java.lang.Object invoke(java.lang.Object o)
throws java.lang.Exception
invoke in interface org.apache.velocity.util.introspection.VelPropertyGeto - the array
java.lang.Exception - failed to get the length from the arraypublic boolean isCacheable()
true.
isCacheable in interface org.apache.velocity.util.introspection.VelPropertyGettrue.public java.lang.String getMethodName()
"array length getter", since there is no method.
getMethodName in interface org.apache.velocity.util.introspection.VelPropertyGet"array length getter"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||