Class ObjectReflectionPropertyInspector
java.lang.Object
org.apache.tomcat.util.xreflection.ObjectReflectionPropertyInspector
Tool for inspecting and generating reflection-less property setter code.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an ObjectReflectionPropertyInspector. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateCode(Set<SetPropertyClass> baseClasses, String packageName, File location, String className) Generates code for the given set of property classes.static voidMain entry point for the tool.
-
Constructor Details
-
ObjectReflectionPropertyInspector
public ObjectReflectionPropertyInspector()Constructs an ObjectReflectionPropertyInspector.
-
-
Method Details
-
main
-
generateCode
public static void generateCode(Set<SetPropertyClass> baseClasses, String packageName, File location, String className) throws Exception Generates code for the given set of property classes.- Parameters:
baseClasses- The classes to processpackageName- The package name for generated codelocation- The output directoryclassName- The class name for generated code- Throws:
Exception- if an error occurs
-