org.apache.commons.clazz.reflect.extended
Class ExtendedReflectedListPropertyIntrospector.AddAccessorMethodParser
java.lang.Object
org.apache.commons.clazz.reflect.common.AccessorMethodParser
org.apache.commons.clazz.reflect.extended.ExtendedReflectedListPropertyIntrospector.AddAccessorMethodParser
- Enclosing class:
- ExtendedReflectedListPropertyIntrospector
public static class ExtendedReflectedListPropertyIntrospector.AddAccessorMethodParser
- extends AccessorMethodParser
Parser for the addFoo(value)
method:
- Return type void
- Name starts with "add" followed by capitalized singular
form of the property name
- One parameter
Method Summary |
protected Class |
getValueType(Method method)
Extract the value type from the method. |
protected int |
requiredParameterCount()
If a method parsed by this parser must have a number or parameters,
override and return that number. |
protected String |
requiredPrefix()
If a method parsed by this parser must have a certain prefix,
override and return a non-null prefix string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedReflectedListPropertyIntrospector.AddAccessorMethodParser
public ExtendedReflectedListPropertyIntrospector.AddAccessorMethodParser()
requiredPrefix
protected String requiredPrefix()
- Description copied from class:
AccessorMethodParser
- If a method parsed by this parser must have a certain prefix,
override and return a non-null prefix string
- Overrides:
requiredPrefix
in class AccessorMethodParser
requiredParameterCount
protected int requiredParameterCount()
- Description copied from class:
AccessorMethodParser
- If a method parsed by this parser must have a number or parameters,
override and return that number.
- Overrides:
requiredParameterCount
in class AccessorMethodParser
getValueType
protected Class getValueType(Method method)
- Description copied from class:
AccessorMethodParser
- Extract the value type from the method. Depending on the type
of method, it could be the return type or the type of a parameter.
- Overrides:
getValueType
in class AccessorMethodParser
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.