Skip to content

Commit 8387719

Browse files
committed
[Java] Add descriptions to IR.
1 parent 08ef8e4 commit 8387719

13 files changed

+191
-55
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/ByteOrderCodec.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33

44

55
/**
6-
* Number encoding byte order
6+
* Number encoding byte order.
77
*/
88
public enum ByteOrderCodec
99
{
10+
11+
/**
12+
* Little Endian byte encoding.
13+
*/
1014
SBE_LITTLE_ENDIAN((short)0),
1115

16+
17+
/**
18+
* Big Endian byte encoding.
19+
*/
1220
SBE_BIG_ENDIAN((short)1),
1321

1422
/**

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/FrameCodecDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
/**
9-
* Frame Header for start of encoding IR
9+
* Frame Header for start of encoding IR.
1010
*/
1111
@SuppressWarnings("all")
1212
public final class FrameCodecDecoder

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/FrameCodecEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
/**
9-
* Frame Header for start of encoding IR
9+
* Frame Header for start of encoding IR.
1010
*/
1111
@SuppressWarnings("all")
1212
public final class FrameCodecEncoder

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/MessageHeaderDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
/**
8-
* Message identifiers and length of message root
8+
* Message identifiers and length of message root.
99
*/
1010
@SuppressWarnings("all")
1111
public final class MessageHeaderDecoder

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/MessageHeaderEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
/**
8-
* Message identifiers and length of message root
8+
* Message identifiers and length of message root.
99
*/
1010
@SuppressWarnings("all")
1111
public final class MessageHeaderEncoder

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/PresenceCodec.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@
33

44

55
/**
6-
* Field presence declaration
6+
* Field presence declaration.
77
*/
88
public enum PresenceCodec
99
{
10+
11+
/**
12+
* A field is required.
13+
*/
1014
SBE_REQUIRED((short)0),
1115

16+
17+
/**
18+
* A field is optional.
19+
*/
1220
SBE_OPTIONAL((short)1),
1321

22+
23+
/**
24+
* A field is a constant value.
25+
*/
1426
SBE_CONSTANT((short)2),
1527

1628
/**

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/PrimitiveTypeCodec.java

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,80 @@
33

44

55
/**
6-
* Primitive types in type system
6+
* Primitive types in type system.
77
*/
88
public enum PrimitiveTypeCodec
99
{
10+
11+
/**
12+
* No type is provided.
13+
*/
1014
NONE((short)0),
1115

16+
17+
/**
18+
* Single byte character encoding in ASCII.
19+
*/
1220
CHAR((short)1),
1321

22+
23+
/**
24+
* 8-bit signed integer.
25+
*/
1426
INT8((short)2),
1527

28+
29+
/**
30+
* 16-bit signed integer.
31+
*/
1632
INT16((short)3),
1733

34+
35+
/**
36+
* 32-bit signed integer.
37+
*/
1838
INT32((short)4),
1939

40+
41+
/**
42+
* 64-bit signed integer.
43+
*/
2044
INT64((short)5),
2145

46+
47+
/**
48+
* 8-bit unsigned integer.
49+
*/
2250
UINT8((short)6),
2351

52+
53+
/**
54+
* 16-bit unsigned integer.
55+
*/
2456
UINT16((short)7),
2557

58+
59+
/**
60+
* 32-bit unsigned integer.
61+
*/
2662
UINT32((short)8),
2763

64+
65+
/**
66+
* 64-bit unsigned integer.
67+
*/
2868
UINT64((short)9),
2969

70+
71+
/**
72+
* 32-bit single precision floating point.
73+
*/
3074
FLOAT((short)10),
3175

76+
77+
/**
78+
* 64-bit double precision floating point.
79+
*/
3280
DOUBLE((short)11),
3381

3482
/**

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/SignalCodec.java

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,110 @@
33

44

55
/**
6-
* Token signal type in IR
6+
* Token signal type in IR.
77
*/
88
public enum SignalCodec
99
{
10+
11+
/**
12+
* Signal the beginning of a message.
13+
*/
1014
BEGIN_MESSAGE((short)1),
1115

16+
17+
/**
18+
* Signal the end of a message.
19+
*/
1220
END_MESSAGE((short)2),
1321

22+
23+
/**
24+
* Signal the beginning of a composite.
25+
*/
1426
BEGIN_COMPOSITE((short)3),
1527

28+
29+
/**
30+
* Signal the end of a composite.
31+
*/
1632
END_COMPOSITE((short)4),
1733

34+
35+
/**
36+
* Signal the beginning of a field.
37+
*/
1838
BEGIN_FIELD((short)5),
1939

40+
41+
/**
42+
* Signal end beginning of a field.
43+
*/
2044
END_FIELD((short)6),
2145

46+
47+
/**
48+
* Signal the beginning of a group.
49+
*/
2250
BEGIN_GROUP((short)7),
2351

52+
53+
/**
54+
* Signal the end of a group.
55+
*/
2456
END_GROUP((short)8),
2557

58+
59+
/**
60+
* Signal the beginning of a enum.
61+
*/
2662
BEGIN_ENUM((short)9),
2763

64+
65+
/**
66+
* Signal a value of an enum.
67+
*/
2868
VALID_VALUE((short)10),
2969

70+
71+
/**
72+
* Signal the end of a enum.
73+
*/
3074
END_ENUM((short)11),
3175

76+
77+
/**
78+
* Signal the beginning of a set.
79+
*/
3280
BEGIN_SET((short)12),
3381

82+
83+
/**
84+
* Signal the a choice in a set.
85+
*/
3486
CHOICE((short)13),
3587

88+
89+
/**
90+
* Signal the end of a set.
91+
*/
3692
END_SET((short)14),
3793

94+
95+
/**
96+
* Signal the beginning of variable data.
97+
*/
3898
BEGIN_VAR_DATA((short)15),
3999

100+
101+
/**
102+
* Signal the end of variable data.
103+
*/
40104
END_VAR_DATA((short)16),
41105

106+
107+
/**
108+
* Signal the encoding of a field.
109+
*/
42110
ENCODING((short)17),
43111

44112
/**

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/TokenCodecDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
/**
9-
* Codec for an IR Token
9+
* Codec for an IR Token.
1010
*/
1111
@SuppressWarnings("all")
1212
public final class TokenCodecDecoder

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated/TokenCodecEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
/**
9-
* Codec for an IR Token
9+
* Codec for an IR Token.
1010
*/
1111
@SuppressWarnings("all")
1212
public final class TokenCodecEncoder

0 commit comments

Comments
 (0)