Class IntrospectionSupport
java.lang.Object
org.fusesource.hawtbuf.proto.compiler.IntrospectionSupport
Support class used to do introspection/reflection based setting and getting of properties on a Java Bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddFields(Object target, Class startClass, Class<Object> stopClass, LinkedHashMap<String, Object> map) protected static voidappendToString(StringBuffer buffer, Object value) private static Objectprivate static StringconvertToString(Object value, Class type) extractProperties(Map props, String optionPrefix) private static MethodfindSetterMethod(Class clazz, String name) static booleangetProperties(Object target, Map props, String optionPrefix) private static booleanisSettableType(Class clazz) static booleansetProperties(Object target, Map props) static booleansetProperties(Object target, Map<String, ?> props, String optionPrefix) static booleansetProperty(Object target, String name, Object value) static StringsimpleName(Class clazz) static Stringstatic String
-
Constructor Details
-
IntrospectionSupport
private IntrospectionSupport()
-
-
Method Details
-
getProperties
-
setProperties
-
extractProperties
-
setProperties
-
setProperty
-
convert
- Throws:
URISyntaxException
-
convertToString
- Throws:
URISyntaxException
-
findSetterMethod
-
isSettableType
-
toString
-
toString
-
appendToString
-
simpleName
-
addFields
-