| Package | Description |
|---|---|
| net.sf.eBus.messages.type |
Provides classes for translating Java built-in types to and
from binary encoding.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<MessageType.MessageField> |
MessageType.mFields
The message field names and types.
|
| Modifier and Type | Method and Description |
|---|---|
List<MessageType.MessageField> |
MessageType.fields()
Returns the message object public fields.
|
protected static List<MessageType.MessageField> |
MessageType.findFields(Class<? extends EMessageObject> mc)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ZoneOffsetType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
ZoneOffset instance from a ByteBuffer. |
protected void |
ZoneIdType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the URI instance
from a
ByteBuffer. |
protected void |
ZonedDateTimeType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
ZonedDateTime instance from a ByteBuffer. |
protected void |
YearType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
Period instance from a ByteBuffer. |
protected void |
YearMonthType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
Period instance from a ByteBuffer. |
protected void |
UriType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the URI instance
from a
ByteBuffer. |
protected void |
StringType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the string instance
from a
ByteBuffer. |
protected void |
ShortType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the short integer value
from a
ByteBuffer. |
protected void |
PeriodType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
Period instance from a ByteBuffer. |
protected void |
OffsetTimeType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
OffsetTime instance from a ByteBuffer. |
protected void |
OffsetDateTimeType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
OffsetDateTime instance from a ByteBuffer. |
protected void |
MonthDayType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
MonthDay instance from a ByteBuffer. |
protected void |
MessageListType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a message list
from a
ByteBuffer. |
protected void |
MessageKeyType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
from a
ByteBuffer. |
protected void |
LongType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the long integer value
from a
ByteBuffer. |
protected void |
LocalTimeType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
LocalTime instance from a ByteBuffer. |
protected void |
LocalMessageType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
protected void |
LocalDateType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
LocalDate instance from a ByteBuffer. |
protected void |
LocalDateTimeType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
LocalDateTime instance from a ByteBuffer. |
protected void |
IntType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the integer value
from a
ByteBuffer. |
protected void |
InstantType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
Instant instance from a ByteBuffer. |
protected void |
InetSocketAddressType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
InetSocketAddress instance from a
ByteBuffer. |
protected void |
InetAddressType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the class de-serialization code storing the
result according to the
useBuilder flag. |
protected void |
FloatType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the float value
from a
ByteBuffer. |
protected void |
FileType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
File
instance from a ByteBuffer. |
protected void |
FieldListType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a field list
from a
ByteBuffer. |
protected void |
EnumType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the enum instance
from a
ByteBuffer based on the enum ordinal value. |
protected void |
DurationType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java code used to de-serialize a
Duration instance from a ByteBuffer. |
protected void |
DoubleType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the double value
from a
ByteBuffer. |
protected void |
DateType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
Date
instance from a ByteBuffer. |
protected abstract void |
DataType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Adds the Java retval used to de-serialize the named field
from a
ByteBuffer. |
protected void |
ConcreteMessageType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Returns code for de-serializing a specified field.
|
protected void |
ClassType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the class de-serialization code storing the
result according to the
useBuilder flag. |
protected void |
CharType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
from a
ByteBuffer. |
protected void |
ByteType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the byte value
from a
ByteBuffer. |
protected void |
BooleanType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Boolean values are serialized separately into a bit mask.
|
protected void |
BigIntegerType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates runtime-compilable code for de-serializing a
BigInteger message field from a
ByteBuffer. |
protected void |
BigDecimalType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the
BigDecimal
instance from a ByteBuffer. |
protected void |
ArrayType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the Java code for de-serializing an array.
|
protected void |
AbstractMessageType.createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Generates the code to de-serialize the named field
from a
ByteBuffer. |
protected void |
ZoneOffsetType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
ZoneOffset
instance to a ByteBuffer. |
protected void |
ZoneIdType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the URI instance to
a
ByteBuffer. |
protected void |
ZonedDateTimeType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
ZonedDateTime instance to a ByteBuffer. |
protected void |
YearType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
Period
instance to a ByteBuffer. |
protected void |
YearMonthType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
Period
instance to a ByteBuffer. |
protected void |
UriType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the URI instance to
a
ByteBuffer. |
protected void |
StringType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the string instance
to a
ByteBuffer. |
protected void |
ShortType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the short integer
field to a
ByteBuffer. |
protected void |
PeriodType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
Period
instance to a ByteBuffer. |
protected void |
OffsetTimeType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
OffsetTime
instance to a ByteBuffer. |
protected void |
OffsetDateTimeType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
OffsetDateTime instance to a ByteBuffer. |
protected void |
MonthDayType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
MonthDay
instance to a ByteBuffer. |
protected void |
MessageListType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a message list to a
ByteBuffer. |
protected void |
MessageKeyType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the message key
instance to a
ByteBuffer. |
protected void |
LongType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the long integer
field to a
ByteBuffer. |
protected void |
LocalTimeType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
LocalTime
instance to a ByteBuffer. |
protected void |
LocalMessageType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
protected void |
LocalDateType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
LocalDate
instance to a ByteBuffer. |
protected void |
LocalDateTimeType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
LocalDateTime instance to a ByteBuffer. |
protected void |
IntType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the integer field to
a
ByteBuffer. |
protected void |
InstantType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
Instant
instance to a ByteBuffer. |
protected void |
InetSocketAddressType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the socket address to
a
ByteBuffer. |
protected void |
InetAddressType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the Internet address
to a
ByteBuffer. |
protected void |
FloatType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the float field to
a
ByteBuffer. |
protected void |
FileType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the file name to
a
ByteBuffer. |
protected void |
FieldListType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a field list to a
ByteBuffer. |
protected void |
EnumType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the enum ordinal
value to a
ByteBuffer. |
protected void |
DurationType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize a
Duration
instance to a ByteBuffer. |
protected void |
DoubleType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the byte field to
a
ByteBuffer. |
protected void |
DateType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the Date instance to
a
ByteBuffer. |
protected abstract void |
DataType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java retval used to serialize the named field to
a
ByteBuffer. |
protected void |
ConcreteMessageType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Returns code for serializing a specific field.
|
protected void |
ClassType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the Class instance to
a
ByteBuffer. |
protected void |
CharType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the character field
to a
ByteBuffer. |
protected void |
ByteType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the byte field to
a
ByteBuffer. |
protected void |
BooleanType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Boolean values are serialized separately into a bit mask.
|
protected void |
BigIntegerType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Generates runtime-compilable code for serializing a
BigInteger message field. |
protected void |
BigDecimalType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Generates the code to serialize the
BigDecimal
instance to a ByteBuffer. |
protected void |
ArrayType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Generates the array serialization code.
|
protected void |
AbstractMessageType.createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Adds the Java code used to serialize the named field to
a
ByteBuffer. |
| Constructor and Description |
|---|
ConcreteMessageType(Class<?> clazz,
List<MessageType.MessageField> fields,
List<Class<? extends EReplyMessage>> replies,
Method builder,
Class<? extends EMessageObject.Builder<?,?>> bc)
Creates a new concrete message type instance.
|
MessageType(Class<?> clazz,
List<MessageType.MessageField> fields,
List<Class<? extends EReplyMessage>> replies)
Creates a new message type instance for the given class,
message fields, and constructor method handle.
|
Copyright © 2019. All rights reserved.