Package com.sun.tools.jxc
Class ConfigReader
java.lang.Object
com.sun.tools.jxc.ConfigReader
This reads the config files passed by the user to annotation processing
and obtains a list of classes that need to be included
for a particular config from the set of classes passed
by the user to annotation processing.
- Author:
- Bhakti Mehta (bhakti.mehta@sun.com)
-
Constructor Summary
ConstructorsConstructorDescriptionConfigReader
(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler) -
Method Summary
Modifier and TypeMethodDescriptionThis creates a regular expression for the user pattern , matches the input classes passed by the user and returns the final list of classes that need to be included for a config file after applying those patternsThis returns the SchemaOutputResolver to generate the schemas
-
Constructor Details
-
ConfigReader
public ConfigReader(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler) throws SAXException, IOException - Parameters:
classes
- The set of classes passed to the AnnotationProcessorxmlFile
- The configuration file.- Throws:
SAXException
- If this is thrown, the error has already been reported.IOException
- If any IO errors occur.
-
-
Method Details
-
getClassesToBeIncluded
This creates a regular expression for the user pattern , matches the input classes passed by the user and returns the final list of classes that need to be included for a config file after applying those patterns -
getSchemaOutputResolver
This returns the SchemaOutputResolver to generate the schemas
-