Package org.jsignal.prop
Class PropGenerator
java.lang.Object
org.jsignal.prop.PropGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSetterMethods
(boolean isBuilder, boolean isTransitive, com.palantir.javapoet.TypeSpec.Builder typeBuilder, Element field, com.palantir.javapoet.TypeName returnType, com.palantir.javapoet.MethodSpec.Builder toBuilderMethod) com.palantir.javapoet.ClassName
builderClassName
(TypeElement element) com.palantir.javapoet.ClassName
classInnerName
(TypeElement element, String name) static Optional
<AnnotationMirror> findAnnotation
(Element element, Class<? extends Annotation> annotationClass) com.palantir.javapoet.ClassName
genClassInnerName
(TypeElement element, String name) com.palantir.javapoet.ClassName
genClassName
(TypeElement element) genClassSimpleName
(TypeElement element) void
generate
(TypeElement element) com.palantir.javapoet.TypeSpec
generateBuilders
(TypeElement element, TypeElement transitiveElement, com.palantir.javapoet.TypeSpec.Builder genClassBuilder) boolean
isComponentClass
(TypeElement element) static String
oneofStepInterfaceName
(String oneofKey) packageName
(Element element) propFields
(TypeElement element) static String
requiredStepInterfaceName
(Element field) static TypeElement
transitivePropsElement
(TypeElement element)
-
Constructor Details
-
PropGenerator
-
-
Method Details
-
isComponentClass
-
genClassSimpleName
-
genClassName
-
requiredStepInterfaceName
-
oneofStepInterfaceName
-
genClassInnerName
-
classInnerName
-
builderClassName
-
generate
-
transitivePropsElement
-
propFields
-
generateBuilders
public com.palantir.javapoet.TypeSpec generateBuilders(TypeElement element, TypeElement transitiveElement, com.palantir.javapoet.TypeSpec.Builder genClassBuilder) -
addSetterMethods
public void addSetterMethods(boolean isBuilder, boolean isTransitive, com.palantir.javapoet.TypeSpec.Builder typeBuilder, Element field, com.palantir.javapoet.TypeName returnType, com.palantir.javapoet.MethodSpec.Builder toBuilderMethod) -
getSupplierTypeArgument
-
packageName
-
findAnnotation
public static Optional<AnnotationMirror> findAnnotation(Element element, Class<? extends Annotation> annotationClass)
-