Class GeneratedCodeNativeReflectionEntry.Builder

    • Constructor Detail

      • Builder

        public Builder​(com.squareup.javapoet.ClassName type)
    • Method Detail

      • conditionalOnTypeReachable

        public GeneratedCodeNativeReflectionEntry.Builder conditionalOnTypeReachable​(com.squareup.javapoet.ClassName conditionalOnTypeReachable)
        Makes this entry conditional to the provided type.
        Parameters:
        conditionalOnTypeReachable - the type which should make this entry taken into account.
        Returns:
        this for method chaining
      • withMethods

        public GeneratedCodeNativeReflectionEntry.Builder withMethods​(com.squareup.javapoet.MethodSpec... methods)
        Add the specified methods or constructors.
        Parameters:
        methods - the method specs to add
        Returns:
        this for method chaining
      • withQueriedMethods

        public GeneratedCodeNativeReflectionEntry.Builder withQueriedMethods​(com.squareup.javapoet.MethodSpec... methods)
        Add the specified methods or constructors.
        Parameters:
        methods - the method specs to add
        Returns:
        this for method chaining
      • withFields

        public GeneratedCodeNativeReflectionEntry.Builder withFields​(com.squareup.javapoet.FieldSpec... fields)
        Add the specified fields.
        Parameters:
        fields - the field specs to add
        Returns:
        this for method chaining