Package 

Class ReactPropertyProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @SupportedAnnotationTypes(value = com.facebook.react.uimanager.annotations.ReactPropertyHolder)@SupportedSourceVersion(value = SourceVersion.RELEASE_7) 
    public class ReactPropertyProcessor
    extends AbstractProcessor
                        

    This annotation processor crawls subclasses of ReactShadowNode and ViewManager and finds their exported properties with the @ReactProp or @ReactGroupProp annotation. It generates a class per shadow node/view manager that is named {@code $$PropsSetter}. This class contains methods to retrieve the name and type of all methods and a way to set these properties without reflection.

    • Method Summary

      Modifier and Type Method Description
      synchronized void init(ProcessingEnvironment processingEnv)
      boolean process(Set<out TypeElement> annotations, RoundEnvironment roundEnv)
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

        getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, process
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait