java.lang.Object
swim.protobuf.reflection.ProtobufReflection
-
Method Summary
Modifier and TypeMethodDescriptionstatic <I,
T> ProtobufRepeatedType<I, T> static <I,
T> ProtobufRepeatedType<I, T> arrayType
(Class<?> itemClass, ProtobufType<I> itemType) static ProtobufVarintType<Boolean>
static ProtobufZigZagType<Byte>
byteType()
static ProtobufVarintType<Character>
charType()
static <T> ProtobufType<T>
static ProtobufDataType<ByteBuffer>
dataType()
static ProtobufFixed64Type<Double>
static <T extends Enum<T>>
ProtobufVarintType<T>static <V,
M> ProtobufFieldType<V, M> field
(Field field, long fieldNumber, ProtobufType<? extends V> valueType) static ProtobufFixed32Type<Float>
static ProtobufZigZagType<Integer>
intType()
static ProtobufZigZagType<Long>
longType()
static <K,
V> ProtobufMapEntryType<K, V, Map.Entry<K, V>> mapEntryType
(ProtobufType<? extends K> keyType, ProtobufType<? extends V> valueType) static <K,
V, M extends Map<K, V>>
ProtobufMapType<K,V, Map.Entry<K, V>, M> mapType
(Class<?> mapClass, ProtobufMapEntryType<? extends K, ? extends V, ? extends Map.Entry<K, V>> entryType) static <K,
V> ProtobufMapType<K, V, Map.Entry<K, V>, Map<K, V>> mapType
(ProtobufMapEntryType<? extends K, ? extends V, ? extends Map.Entry<K, V>> entryType) static <K,
V> ProtobufMapType<K, V, Map.Entry<K, V>, Map<K, V>> mapType
(ProtobufType<? extends K> keyType, ProtobufType<? extends V> valueType) static <T> ProtobufMessageType<T,
T> messageType
(Class<?> messageClass) static <V,
M> ProtobufFieldType<V, M> repeatedField
(Field field, long fieldNumber, ProtobufRepeatedType<V, ?> repeatedType) static ProtobufZigZagType<Short>
static ProtobufStringType<String>
-
Method Details
-
booleanType
-
byteType
-
shortType
-
intType
-
longType
-
floatType
-
doubleType
-
charType
-
dataType
-
stringType
-
messageType
-
enumType
-
arrayType
public static <I,T> ProtobufRepeatedType<I,T> arrayType(Class<?> itemClass, ProtobufType<I> itemType) -
arrayType
-
mapEntryType
public static <K,V> ProtobufMapEntryType<K,V, mapEntryTypeMap.Entry<K, V>> (ProtobufType<? extends K> keyType, ProtobufType<? extends V> valueType) -
mapType
public static <K,V, ProtobufMapType<K,M extends Map<K, V>> V, mapTypeMap.Entry<K, V>, M> (Class<?> mapClass, ProtobufMapEntryType<? extends K, ? extends V, ? extends Map.Entry<K, V>> entryType) -
mapType
public static <K,V> ProtobufMapType<K,V, mapTypeMap.Entry<K, V>, Map<K, V>> (ProtobufMapEntryType<? extends K, ? extends V, ? extends Map.Entry<K, V>> entryType) -
mapType
public static <K,V> ProtobufMapType<K,V, mapTypeMap.Entry<K, V>, Map<K, V>> (ProtobufType<? extends K> keyType, ProtobufType<? extends V> valueType) -
field
public static <V,M> ProtobufFieldType<V,M> field(Field field, long fieldNumber, ProtobufType<? extends V> valueType) -
repeatedField
public static <V,M> ProtobufFieldType<V,M> repeatedField(Field field, long fieldNumber, ProtobufRepeatedType<V, ?> repeatedType) -
classType
-