public static final class FieldPrecedenceModel.CodecInteraction.CodecInteractionFactory extends Object
FieldPrecedenceModel.CodecInteraction instances. This factory
is used to hash-cons the instances, so that they can be compared by
reference.| Modifier and Type | Method and Description |
|---|---|
FieldPrecedenceModel.CodecInteraction |
accessField(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent accessing the field identified
by the given token. |
FieldPrecedenceModel.CodecInteraction |
accessVarDataLength(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent accessing the length
of a variable-length data field without advancing the codec position. |
FieldPrecedenceModel.CodecInteraction |
determineGroupHasElements(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent determining a
repeating group has elements. |
FieldPrecedenceModel.CodecInteraction |
determineGroupIsEmpty(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent determining a
repeating group is empty. |
FieldPrecedenceModel.CodecInteraction |
moveToLastElement(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent moving to the last
element in a repeating group. |
FieldPrecedenceModel.CodecInteraction |
moveToNextElement(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent moving to the next
element in a repeating group. |
FieldPrecedenceModel.CodecInteraction |
resetCountToIndex(Token token)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent resetting the count
of a repeating group to the current index. |
FieldPrecedenceModel.CodecInteraction |
wrap(int version)
Find or create a
FieldPrecedenceModel.CodecInteraction to represent wrapping a codec around
the given version of data. |
public FieldPrecedenceModel.CodecInteraction wrap(int version)
FieldPrecedenceModel.CodecInteraction to represent wrapping a codec around
the given version of data.version - the version of data to wrapFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction accessField(Token token)
FieldPrecedenceModel.CodecInteraction to represent accessing the field identified
by the given token.
The supplied token must carry a Signal.BEGIN_FIELD
or Signal.BEGIN_VAR_DATA signal.
token - the token identifying the fieldFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction determineGroupIsEmpty(Token token)
FieldPrecedenceModel.CodecInteraction to represent determining a
repeating group is empty.
For encoding, this will be when the group count is supplied, e.g.,
encoder.myGroupCount(0).
For decoding, this will be when the group is read, e.g.,
decoder.myGroup().
The supplied token must carry a Signal.BEGIN_GROUP signal.
token - the token identifying the groupFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction determineGroupHasElements(Token token)
FieldPrecedenceModel.CodecInteraction to represent determining a
repeating group has elements.
For encoding, this will be when the group count is supplied, e.g.,
encoder.myGroupCount(1).
For decoding, this will be when the group is read, e.g.,
decoder.myGroup().
The supplied token must carry a Signal.BEGIN_GROUP signal.
token - the token identifying the groupFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction moveToNextElement(Token token)
FieldPrecedenceModel.CodecInteraction to represent moving to the next
element in a repeating group.
For encoders, decoders, and codecs, this will be when the next element
is accessed, e.g., myGroup.next() when myGroup.count - myGroup.index > 1.
The supplied token must carry a Signal.BEGIN_GROUP signal.
token - the token identifying the groupFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction moveToLastElement(Token token)
FieldPrecedenceModel.CodecInteraction to represent moving to the last
element in a repeating group.
For encoders, decoders, and codecs, this will be when the last element
is accessed, e.g., myGroup.next() when myGroup.count - myGroup.index == 1.
token - the token identifying the groupFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction resetCountToIndex(Token token)
FieldPrecedenceModel.CodecInteraction to represent resetting the count
of a repeating group to the current index.
For encoders, decoders, and codecs, this will be when the resetCountToIndex
method is called, e.g., myGroup.resetCountToIndex().
The supplied token must carry a Signal.BEGIN_GROUP signal.
token - the token identifying the groupFieldPrecedenceModel.CodecInteraction instancepublic FieldPrecedenceModel.CodecInteraction accessVarDataLength(Token token)
FieldPrecedenceModel.CodecInteraction to represent accessing the length
of a variable-length data field without advancing the codec position.
For decoders and codecs, this will be when the length is accessed, e.g.,
decoder.myVarDataLength().
The supplied token must carry a Signal.BEGIN_VAR_DATA signal.
token - the token identifying the fieldFieldPrecedenceModel.CodecInteraction instanceCopyright © 2013-2024 Real Logic Limited. All Rights Reserved.