Package xyz.block.ftl.deployment
Class ModuleBuilder
-
- All Implemented Interfaces:
public class ModuleBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumModuleBuilder.BodyType
-
Field Summary
Fields Modifier and Type Field Description public final static StringBUILTINpublic final static DotNameINSTANTpublic final static DotNameZONED_DATE_TIMEpublic final static DotNameNOT_NULLpublic final static DotNameJSON_NODEpublic final static DotNameOFFSET_DATE_TIMEpublic final static DotNameGENERATED_REFpublic final static DotNameEXPORTpublic final StringmoduleName
-
Constructor Summary
Constructors Constructor Description ModuleBuilder(IndexView index, String moduleName, Map<DotName, TopicsBuildItem.DiscoveredTopic> knownTopics, Map<DotName, VerbClientBuildItem.DiscoveredClients> verbClients, FTLRecorder recorder, Map<String, String> verbDocs, Map<TypeKey, ModuleBuilder.ExistingRef> typeAliases)
-
Method Summary
Modifier and Type Method Description StringgetModuleName()static StringmethodToName(MethodInfo method)static Class<out Object>loadClass(Type param)voidregisterVerbMethod(MethodInfo method, String className, boolean exported, ModuleBuilder.BodyType bodyType, Consumer<Verb.Builder> metadataCallback)TypebuildType(Type type, boolean export)ModuleBuilderaddDecls(Decl decl)voidwriteTo(OutputStream out)voidregisterTypeAlias(String name, Type finalT, Type finalS, boolean exported)-
-
Constructor Detail
-
ModuleBuilder
ModuleBuilder(IndexView index, String moduleName, Map<DotName, TopicsBuildItem.DiscoveredTopic> knownTopics, Map<DotName, VerbClientBuildItem.DiscoveredClients> verbClients, FTLRecorder recorder, Map<String, String> verbDocs, Map<TypeKey, ModuleBuilder.ExistingRef> typeAliases)
-
-
Method Detail
-
getModuleName
String getModuleName()
-
methodToName
@NotNull() static String methodToName(MethodInfo method)
-
registerVerbMethod
void registerVerbMethod(MethodInfo method, String className, boolean exported, ModuleBuilder.BodyType bodyType, Consumer<Verb.Builder> metadataCallback)
-
buildType
Type buildType(Type type, boolean export)
-
addDecls
ModuleBuilder addDecls(Decl decl)
-
writeTo
void writeTo(OutputStream out)
-
registerTypeAlias
void registerTypeAlias(String name, Type finalT, Type finalS, boolean exported)
-
-
-
-