Class PrecedenceChecks.Context
java.lang.Object
uk.co.real_logic.sbe.generation.common.PrecedenceChecks.Context
- Enclosing class:
- PrecedenceChecks
The context describing how precedence checks should be generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconclude()Validates thisPrecedenceChecks.Contextinstance.Returns the name of the flag that can be used to enable precedence checks at runtime.precedenceChecksFlagName(String precedenceChecksFlagName) Sets the name of the flag that can be used to enable precedence checks at runtime.Returns the name of the system property that can be used to enable precedence checks at runtime.precedenceChecksPropName(String precedenceChecksPropName) Sets the name of the system property that can be used to enable precedence checks at runtime.booleanReturnstrueif precedence checks should be generated;falseotherwise.shouldGeneratePrecedenceChecks(boolean shouldGeneratePrecedenceChecks) Sets whether field precedence checks should be generated.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
shouldGeneratePrecedenceChecks
public boolean shouldGeneratePrecedenceChecks()Returnstrueif precedence checks should be generated;falseotherwise.- Returns:
trueif precedence checks should be generated;falseotherwise.
-
shouldGeneratePrecedenceChecks
public PrecedenceChecks.Context shouldGeneratePrecedenceChecks(boolean shouldGeneratePrecedenceChecks) Sets whether field precedence checks should be generated.- Parameters:
shouldGeneratePrecedenceChecks-trueif precedence checks should be generated;falseotherwise.- Returns:
- this
PrecedenceChecks.Contextinstance.
-
precedenceChecksFlagName
Returns the name of the flag that can be used to enable precedence checks at runtime.- Returns:
- the name of the flag that can be used to enable precedence checks at runtime.
-
precedenceChecksFlagName
Sets the name of the flag that can be used to enable precedence checks at runtime.- Parameters:
precedenceChecksFlagName- the name of the flag that can be used to enable precedence checks at runtime.- Returns:
- this
PrecedenceChecks.Contextinstance.
-
precedenceChecksPropName
Returns the name of the system property that can be used to enable precedence checks at runtime.- Returns:
- the name of the system property that can be used to enable precedence checks at runtime.
-
precedenceChecksPropName
Sets the name of the system property that can be used to enable precedence checks at runtime.- Parameters:
precedenceChecksPropName- the name of the system property that can be used to enable precedence checks at runtime.- Returns:
- this
PrecedenceChecks.Contextinstance.
-
conclude
public void conclude()Validates thisPrecedenceChecks.Contextinstance.
-