public class TypeAssist extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) Annotation |
dataType |
(专用程序包) Class<? extends java.util.function.Function> |
decodeFormula |
(专用程序包) Boolean |
decodeIgnore |
(专用程序包) java.util.function.Function<DecodeContext,?> |
decoder |
(专用程序包) Class<? extends TypeDecoder> |
decoderClass |
(专用程序包) List<TypeAssist> |
elements |
(专用程序包) ElementType |
elementType |
(专用程序包) Class<? extends java.util.function.Function> |
encodeFormula |
(专用程序包) Boolean |
encodeIgnore |
(专用程序包) java.util.function.Consumer<?> |
encoder |
(专用程序包) Class<? extends TypeEncoder> |
encoderClass |
(专用程序包) EndianPolicy |
endianPolicy |
(专用程序包) Field |
field |
(专用程序包) TypeAssist |
parent |
(专用程序包) Class<?> |
type |
| 限定符 | 构造器和说明 |
|---|---|
protected |
TypeAssist() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasElement() |
static TypeAssist |
of(Class<?> clazz) |
protected static TypeAssist |
of(Field field) |
void |
setValue(Object object,
Object value) |
protected DecodeContext |
toDecodeContext(byte[] datagram,
Object object) |
List<DecodeContext> |
toDecodeContexts(byte[] datagram) |
protected List<DecodeContext> |
toDecodeContexts(byte[] datagram,
Object object) |
EncodeContext |
toEncodeContext(Object object,
byte[] datagram) |
List<EncodeContext> |
toEncodeContexts(Object object,
byte[] datagram) |
TypeAssist parent
Class<?> type
Field field
Annotation dataType
EndianPolicy endianPolicy
Boolean decodeIgnore
Boolean encodeIgnore
ElementType elementType
List<TypeAssist> elements
Class<? extends TypeDecoder> decoderClass
Class<? extends TypeEncoder> encoderClass
Class<? extends java.util.function.Function> decodeFormula
Class<? extends java.util.function.Function> encodeFormula
java.util.function.Function<DecodeContext,?> decoder
java.util.function.Consumer<?> encoder
public static TypeAssist of(Class<?> clazz)
protected static TypeAssist of(Field field)
public boolean hasElement()
protected DecodeContext toDecodeContext(byte[] datagram, Object object)
protected List<DecodeContext> toDecodeContexts(byte[] datagram, Object object)
public List<DecodeContext> toDecodeContexts(byte[] datagram)
public EncodeContext toEncodeContext(Object object, byte[] datagram)
public List<EncodeContext> toEncodeContexts(Object object, byte[] datagram)
Copyright © 2018–2021 Industrial Internet. All rights reserved.