Class BundleAnalyzeHandler

java.lang.Object
org.tentackle.buildsupport.AbstractAnalyzeHandler
org.tentackle.buildsupport.BundleAnalyzeHandler
All Implemented Interfaces:
AnalyzeHandler
Direct Known Subclasses:
FxControllerBundleAnalyzeHandler

public class BundleAnalyzeHandler extends AbstractAnalyzeHandler
Handler to extract the name of the resource bundle from the class annotated with @Bundle.
Author:
harald
  • Constructor Details

    • BundleAnalyzeHandler

      public BundleAnalyzeHandler()
  • Method Details

    • 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(TypeElement annotationType, RoundEnvironment roundEnv)
      Description copied from interface: AnalyzeHandler
      Processes the annotation.
      Parameters:
      annotationType - the annotation type
      roundEnv - the processing environment
    • getBundleName

      protected String getBundleName(Element element, 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 String xlateBundleName(String bundleName)
      Translates the bundle name to a standard format.
      Parameters:
      bundleName - the name
      Returns:
      the standardized name in dot format (without .class)