- java.lang.Object
-
- swim.protobuf.reflection.ProtobufReflection
-
public final class ProtobufReflection extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I,T>
ProtobufRepeatedType<I,T>arrayType(Class<?> itemClass)
static <I,T>
ProtobufRepeatedType<I,T>arrayType(Class<?> itemClass, ProtobufType<I> itemType)
static ProtobufVarintType<Boolean>
booleanType()
static ProtobufZigZagType<Byte>
byteType()
static ProtobufVarintType<Character>
charType()
static <T> ProtobufType<T>
classType(Class<?> type)
static ProtobufDataType<ByteBuffer>
dataType()
static ProtobufFixed64Type<Double>
doubleType()
static <T extends Enum<T>>
ProtobufVarintType<T>enumType(Class<T> enumClass)
static <V,M>
ProtobufFieldType<V,M>field(Field field, long fieldNumber, ProtobufType<? extends V> valueType)
static ProtobufFixed32Type<Float>
floatType()
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>
shortType()
static ProtobufStringType<String>
stringType()
-
-
-
Method Detail
-
booleanType
public static ProtobufVarintType<Boolean> booleanType()
-
byteType
public static ProtobufZigZagType<Byte> byteType()
-
shortType
public static ProtobufZigZagType<Short> shortType()
-
intType
public static ProtobufZigZagType<Integer> intType()
-
longType
public static ProtobufZigZagType<Long> longType()
-
floatType
public static ProtobufFixed32Type<Float> floatType()
-
doubleType
public static ProtobufFixed64Type<Double> doubleType()
-
charType
public static ProtobufVarintType<Character> charType()
-
dataType
public static ProtobufDataType<ByteBuffer> dataType()
-
stringType
public static ProtobufStringType<String> stringType()
-
messageType
public static <T> ProtobufMessageType<T,T> messageType(Class<?> messageClass)
-
enumType
public static <T extends Enum<T>> ProtobufVarintType<T> enumType(Class<T> enumClass)
-
arrayType
public static <I,T> ProtobufRepeatedType<I,T> arrayType(Class<?> itemClass, ProtobufType<I> itemType)
-
arrayType
public static <I,T> ProtobufRepeatedType<I,T> arrayType(Class<?> itemClass)
-
mapEntryType
public static <K,V> ProtobufMapEntryType<K,V,Map.Entry<K,V>> mapEntryType(ProtobufType<? extends K> keyType, ProtobufType<? extends V> valueType)
-
mapType
public 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)
-
mapType
public 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)
-
mapType
public static <K,V> ProtobufMapType<K,V,Map.Entry<K,V>,Map<K,V>> mapType(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
public static <T> ProtobufType<T> classType(Class<?> type)
-
-