Package uk.co.real_logic.sbe.ir
Class Token.Builder
java.lang.Object
uk.co.real_logic.sbe.ir.Token.Builder
- Enclosing class:
- Token
Builder for
Token which can simplify construction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new Token based on the values.componentTokenCount(int componentTokenCount) Count of tokens in the component.deprecated(int deprecated) Deprecated version attribute for the Token.description(String description) Description attribute for the Token.Encoding type for the Token.id(int id) ID attribute for the Token.Name for the Token.offset(int offset) Offset in the message for the Token.packageName(String packageName) Package name for the Token, default is null.referencedName(String referencedName) Referenced type name for the Token.Signal for the Token.size(int size) Size of the type for the Token.version(int version) Version attribute value for the Token.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
signal
Signal for the Token.- Parameters:
signal- for the Token.- Returns:
- this for a fluent API.
-
name
Name for the Token.- Parameters:
name- for the Token.- Returns:
- this for a fluent API.
-
packageName
Package name for the Token, default is null. Use for BEGIN_MESSAGE tokens for types that require an explicit package.- Parameters:
packageName- for the Token.- Returns:
- this for a fluent API.
-
referencedName
Referenced type name for the Token.- Parameters:
referencedName- for the Token.- Returns:
- this for a fluent API.
-
description
Description attribute for the Token.- Parameters:
description- for the Token.- Returns:
- this for a fluent API.
-
id
ID attribute for the Token.- Parameters:
id- for the Token.- Returns:
- this for a fluent API.
-
version
Version attribute value for the Token.- Parameters:
version- for the Token.- Returns:
- this for a fluent API.
-
deprecated
Deprecated version attribute for the Token.- Parameters:
deprecated- version for the Token.- Returns:
- this for a fluent API.
-
size
Size of the type for the Token.- Parameters:
size- for the Token.- Returns:
- this for a fluent API.
-
offset
Offset in the message for the Token.- Parameters:
offset- for the Token.- Returns:
- this for a fluent API.
-
componentTokenCount
Count of tokens in the component.- Parameters:
componentTokenCount- for the component.- Returns:
- this for a fluent API.
-
encoding
Encoding type for the Token.- Parameters:
encoding- for the Token.- Returns:
- this for a fluent API.
-
build
Build a new Token based on the values.- Returns:
- a new Token based on the values.
-