Class PropGenerator

java.lang.Object
org.jsignal.prop.PropGenerator

public class PropGenerator extends Object
  • Constructor Details

  • Method Details

    • isComponentClass

      public boolean isComponentClass(TypeElement element)
    • genClassSimpleName

      public String genClassSimpleName(TypeElement element)
    • genClassName

      public com.palantir.javapoet.ClassName genClassName(TypeElement element)
    • requiredStepInterfaceName

      public static String requiredStepInterfaceName(Element field)
    • oneofStepInterfaceName

      public static String oneofStepInterfaceName(String oneofKey)
    • genClassInnerName

      public com.palantir.javapoet.ClassName genClassInnerName(TypeElement element, String name)
    • classInnerName

      public com.palantir.javapoet.ClassName classInnerName(TypeElement element, String name)
    • builderClassName

      public com.palantir.javapoet.ClassName builderClassName(TypeElement element)
    • generate

      public void generate(TypeElement element)
    • transitivePropsElement

      public static TypeElement transitivePropsElement(TypeElement element)
    • propFields

      public static List<? extends Element> propFields(TypeElement element)
    • 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

      public Optional<TypeMirror> getSupplierTypeArgument(TypeMirror type)
    • packageName

      public String packageName(Element element)
    • findAnnotation

      public static Optional<AnnotationMirror> findAnnotation(Element element, Class<? extends Annotation> annotationClass)