public class ProtobufHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Method |
adder(Class<?> type,
String field) |
static Class<? extends com.google.protobuf.Message.Builder> |
builder(Class<?> builderType,
String field) |
static List<String> |
fields(Class<?> type) |
static Class<?> |
fieldType(Class<?> type,
String memberName) |
static Method |
getter(Class<?> type,
String field) |
static boolean |
hasBuilder(Class<?> builderType,
String field) |
static Method |
hasMethod(Class<?> type,
String field) |
static Class<?> |
iterableType(Class<?> type,
String field) |
static Class<?> |
messageOfBuilder(Class<?> builderType) |
static Method |
setter(Class<?> type,
String field) |
static Method |
setterForBuilder(Class<?> type,
String field) |
public static Class<? extends com.google.protobuf.Message.Builder> builder(Class<?> builderType, String field)
public static Class<?> fieldType(Class<?> type, String memberName) throws NoSuchFieldException, NoSuchMethodException
public static Method getter(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method setterForBuilder(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method setter(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method adder(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Class<?> iterableType(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method hasMethod(Class<?> type, String field) throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2011-2023. All Rights Reserved.