public final class PrecedenceChecks extends Object
FieldPrecedenceModel
for a message from its IR tokens.Modifier and Type | Class and Description |
---|---|
static class |
PrecedenceChecks.Context
The context describing how precedence checks should be generated.
|
Modifier and Type | Method and Description |
---|---|
PrecedenceChecks.Context |
context()
Returns the
PrecedenceChecks.Context describing how precedence checks should be generated. |
FieldPrecedenceModel |
createCodecModel(String stateClassName,
List<Token> msgTokens)
Creates a
FieldPrecedenceModel for the given message tokens,
unless precedence checks are disabled, in which case null is returned. |
FieldPrecedenceModel |
createDecoderModel(String stateClassName,
List<Token> msgTokens)
Creates a
FieldPrecedenceModel for the given message tokens,
unless precedence checks are disabled, in which case null is returned. |
FieldPrecedenceModel |
createEncoderModel(String stateClassName,
List<Token> msgTokens)
Creates a
FieldPrecedenceModel for the given message tokens,
unless precedence checks are disabled, in which case null is returned. |
static PrecedenceChecks |
newInstance(PrecedenceChecks.Context context)
Creates a new
PrecedenceChecks instance. |
public FieldPrecedenceModel createEncoderModel(String stateClassName, List<Token> msgTokens)
FieldPrecedenceModel
for the given message tokens,
unless precedence checks are disabled, in which case null
is returned.
Only the latest version of the message is considered when creating the model.
stateClassName
- the name of the generated class that models the state of the encoder.msgTokens
- the tokens of the message.FieldPrecedenceModel
for the given message tokens or null
if precedence checks
are disabled.public FieldPrecedenceModel createDecoderModel(String stateClassName, List<Token> msgTokens)
FieldPrecedenceModel
for the given message tokens,
unless precedence checks are disabled, in which case null
is returned.
All versions of the message are considered when creating the model.
stateClassName
- the name of the generated class that models the state of the decoder.msgTokens
- the tokens of the message.FieldPrecedenceModel
for the given message tokens or null
if precedence checks
are disabled.public FieldPrecedenceModel createCodecModel(String stateClassName, List<Token> msgTokens)
FieldPrecedenceModel
for the given message tokens,
unless precedence checks are disabled, in which case null
is returned.
All versions of the message are considered when creating the model.
stateClassName
- the name of the generated class that models the state of the codec.msgTokens
- the tokens of the message.FieldPrecedenceModel
for the given message tokens or null
if precedence checks
are disabled.public PrecedenceChecks.Context context()
PrecedenceChecks.Context
describing how precedence checks should be generated.PrecedenceChecks.Context
describing how precedence checks should be generated.public static PrecedenceChecks newInstance(PrecedenceChecks.Context context)
PrecedenceChecks
instance.context
- the PrecedenceChecks.Context
describing how precedence checks should be generated.PrecedenceChecks
instance.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.