Class BundleHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      BundleHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getBundleName​(javax.lang.model.element.Element element, java.lang.String annotationName)
      Gets the bundlename from the annotated element.
      AnalyzeProcessor getProcessor()
      Gets the annotation processor.
      void processAnnotation​(javax.lang.model.element.TypeElement annotationType, javax.annotation.processing.RoundEnvironment roundEnv)
      Processes the annotation.
      void setProcessor​(AnalyzeProcessor processor)
      Sets the annotation processor.
      protected java.lang.String xlateBundleName​(java.lang.String bundleName)
      Translates the bundle name to a standard format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BundleHandler

        public BundleHandler()
    • Method Detail

      • setProcessor

        public void setProcessor​(AnalyzeProcessor processor)
        Description copied from interface: AnalyzeHandler
        Sets the annotation processor.
        Parameters:
        processor - the annotation processor
      • getProcessor

        public AnalyzeProcessor getProcessor()
        Description copied from interface: AnalyzeHandler
        Gets the annotation processor.
        Returns:
        the annotation processor
      • processAnnotation

        public void processAnnotation​(javax.lang.model.element.TypeElement annotationType,
                                      javax.annotation.processing.RoundEnvironment roundEnv)
        Description copied from interface: AnalyzeHandler
        Processes the annotation.
        Parameters:
        annotationType - the annotation type
        roundEnv - the processing environment
      • getBundleName

        protected java.lang.String getBundleName​(javax.lang.model.element.Element element,
                                                 java.lang.String annotationName)
        Gets the bundlename from the annotated element.
        Parameters:
        element - the bundle name
        annotationName - the annotation name (e.g. ...Bundle)
        Returns:
        the bundle name, null if no bundle
      • xlateBundleName

        protected java.lang.String xlateBundleName​(java.lang.String bundleName)
        Translates the bundle name to a standard format.
        Parameters:
        bundleName - the name
        Returns:
        the standardized name in dot format (without .class)