Class ObjectReflectionPropertyInspector


  • public final class ObjectReflectionPropertyInspector
    extends java.lang.Object
    Tool for inspecting and generating reflection-less property setter code.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void generateCode​(java.util.Set<SetPropertyClass> baseClasses, java.lang.String packageName, java.io.File location, java.lang.String className)
      Generates code for the given set of property classes.
      static void main​(java.lang.String... args)
      Main entry point for the tool.
      • Methods inherited from class java.lang.Object

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

      • ObjectReflectionPropertyInspector

        public ObjectReflectionPropertyInspector()
        Constructs an ObjectReflectionPropertyInspector.
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
                         throws java.lang.Exception
        Main entry point for the tool.
        Parameters:
        args - Command line arguments (output directory)
        Throws:
        java.lang.Exception - if an error occurs
      • generateCode

        public static void generateCode​(java.util.Set<SetPropertyClass> baseClasses,
                                        java.lang.String packageName,
                                        java.io.File location,
                                        java.lang.String className)
                                 throws java.lang.Exception
        Generates code for the given set of property classes.
        Parameters:
        baseClasses - The classes to process
        packageName - The package name for generated code
        location - The output directory
        className - The class name for generated code
        Throws:
        java.lang.Exception - if an error occurs