Class StructGenerator
java.lang.Object
org.wpilib.util.struct.StructGenerator
A utility class for procedurally generating
Structs from records and enums.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA utility for building schema syntax in a procedural manner. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidaddCustomStruct(Class<T> clazz, Struct<T> struct, boolean override) Add a custom struct to the structifier.
-
Method Details
-
addCustomStruct
Add a custom struct to the structifier.- Type Parameters:
T- The type the struct is for.- Parameters:
clazz- The class of the type.struct- The struct to add.override- Whether to override an existing struct. An existing struct could mean the type already has astructfield and implemntsStructSerializableor that the type is already in the custom struct map.
-
genRecord
-
genEnum
-