public enum ProtocolType extends Enum<ProtocolType>
| 枚举常量和说明 |
|---|
ARRAY |
BINARY |
BOOLEAN |
BYTE |
CHARACTER |
DATE |
DOUBLE |
ENUM |
FLOAT |
INTEGER |
INTEGER16 |
INTEGER8 |
LIST |
LONG |
SHORT |
STRING |
TIMESTAMP |
UINTEGER16 |
UINTEGER32 |
UINTEGER64 |
UINTEGER8 |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
AUTO_TYPE_NAME |
protected static String |
BIT_OFFSET_NAME |
protected static String |
BYTE_OFFSET_NAME |
protected static String |
DECODE_FORMULA_NAME |
protected static String |
ENCODE_FORMULA_NAME |
protected static String |
JAVA_TYPES_NAME |
protected static String |
LENGTH_NAME |
protected static String |
PROTOCOL_TYPES_NAME |
protected static String |
SIZE_NAME |
(专用程序包) Class<? extends Annotation> |
typeAnnotationClass |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
autoType() |
static int |
bitOffset(@NonNull Annotation typeAnnotation) |
static ProtocolType |
byAutoType(Type type) |
static int |
byteOffset(@NonNull Annotation typeAnnotation) |
static Class<? extends java.util.function.Function> |
decodeFormula(@NonNull Annotation typeAnnotation) |
static Class<? extends TypeDecoder> |
decoderCLass(@NonNull Annotation typeAnnotation) |
static Class<? extends java.util.function.Function> |
encodeFormula(@NonNull Annotation typeAnnotation) |
static Class<? extends TypeEncoder> |
encoderClass(@NonNull Annotation typeAnnotation) |
protected static Class<? extends java.util.function.Function> |
formula(@NonNull Annotation typeAnnotation,
@NonNull String name) |
static boolean |
isSupported(@NonNull Type type) |
Type |
javaType() |
Type[] |
javaTypes() |
static Type[] |
javaTypes(@NonNull Annotation typeAnnotation) |
static Type[] |
javaTypes(@NonNull Class<? extends Annotation> typeAnnotationClass) |
static int |
length(@NonNull Annotation typeAnnotation) |
boolean |
match(Type type) |
static ProtocolType[] |
protocolTypes(@NonNull Annotation typeAnnotation) |
static int |
size(@NonNull Annotation typeAnnotation) |
static int |
size(@NonNull Class<? extends Annotation> typeAnnotationClass) |
static int |
size(@NonNull ProtocolType type) |
static Type[] |
supportedTypes() |
static ProtocolType |
valueOf(Class<? extends Annotation> clazz) |
static ProtocolType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ProtocolType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
static Type |
wrapperClass(@NonNull String name) |
public static final ProtocolType BINARY
public static final ProtocolType BOOLEAN
public static final ProtocolType CHARACTER
public static final ProtocolType BYTE
public static final ProtocolType DOUBLE
public static final ProtocolType FLOAT
public static final ProtocolType INTEGER
public static final ProtocolType LONG
public static final ProtocolType SHORT
public static final ProtocolType STRING
public static final ProtocolType TIMESTAMP
public static final ProtocolType DATE
public static final ProtocolType INTEGER8
public static final ProtocolType INTEGER16
public static final ProtocolType UINTEGER8
public static final ProtocolType UINTEGER16
public static final ProtocolType UINTEGER32
public static final ProtocolType UINTEGER64
public static final ProtocolType ENUM
public static final ProtocolType LIST
public static final ProtocolType ARRAY
Class<? extends Annotation> typeAnnotationClass
public static ProtocolType[] values()
for (ProtocolType c : ProtocolType.values()) System.out.println(c);
public static ProtocolType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean autoType()
public Type javaType()
public Type[] javaTypes()
public boolean match(Type type)
public static ProtocolType valueOf(Class<? extends Annotation> clazz)
public static ProtocolType byAutoType(Type type)
public static Type[] supportedTypes()
public static boolean isSupported(@NonNull
@NonNull Type type)
public static int size(@NonNull
@NonNull ProtocolType type)
public static int size(@NonNull
@NonNull Class<? extends Annotation> typeAnnotationClass)
public static ProtocolType[] protocolTypes(@NonNull @NonNull Annotation typeAnnotation)
public static Class<? extends java.util.function.Function> encodeFormula(@NonNull @NonNull Annotation typeAnnotation)
public static Class<? extends java.util.function.Function> decodeFormula(@NonNull @NonNull Annotation typeAnnotation)
public static Class<? extends TypeDecoder> decoderCLass(@NonNull @NonNull Annotation typeAnnotation)
public static Class<? extends TypeEncoder> encoderClass(@NonNull @NonNull Annotation typeAnnotation)
protected static Class<? extends java.util.function.Function> formula(@NonNull @NonNull Annotation typeAnnotation, @NonNull @NonNull String name)
public static Type[] javaTypes(@NonNull @NonNull Annotation typeAnnotation)
public static Type[] javaTypes(@NonNull @NonNull Class<? extends Annotation> typeAnnotationClass)
public static int byteOffset(@NonNull
@NonNull Annotation typeAnnotation)
public static int bitOffset(@NonNull
@NonNull Annotation typeAnnotation)
public static int size(@NonNull
@NonNull Annotation typeAnnotation)
public static int length(@NonNull
@NonNull Annotation typeAnnotation)
Copyright © 2019–2021 indunet. All rights reserved.