Package uk.co.real_logic.sbe.generation
Enum Class TargetCodeGeneratorLoader
- All Implemented Interfaces:
Serializable,Comparable<TargetCodeGeneratorLoader>,Constable,TargetCodeGenerator
public enum TargetCodeGeneratorLoader
extends Enum<TargetCodeGeneratorLoader>
implements TargetCodeGenerator
Loader for
CodeGenerators which target a language. This provides convenient short names rather than the
fully qualified class name of the generator.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGenerates codecs for the C11 programming language.Generates codecs for the C++11 programming language with some conditional includes for C++14 and C++17.Generates codecs for the Go programming language.Generates codecs for the Java 8 programming language.Generates codecs for the Rust programming language. -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetCodeGeneratorDo a case-insensitive lookup of a target language for code generation.static PrecedenceChecksReturns the precedence checks to run, configured from system properties.static TargetCodeGeneratorLoaderReturns the enum constant of this class with the specified name.static TargetCodeGeneratorLoader[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface uk.co.real_logic.sbe.generation.TargetCodeGenerator
newInstance
-
Enum Constant Details
-
JAVA
Generates codecs for the Java 8 programming language. -
C
Generates codecs for the C11 programming language. -
CPP
Generates codecs for the C++11 programming language with some conditional includes for C++14 and C++17. -
GOLANG
Generates codecs for the Go programming language. -
RUST
Generates codecs for the Rust programming language.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
precedenceChecks
Returns the precedence checks to run, configured from system properties.- Returns:
- the precedence checks to run, configured from system properties.
-
get
Do a case-insensitive lookup of a target language for code generation.- Parameters:
name- of the target language to lookup.- Returns:
- the
TargetCodeGeneratorfor the given language name.
-