Package com.sun.tools.jxc
Class ConfigReader
- java.lang.Object
-
- com.sun.tools.jxc.ConfigReader
-
public final class ConfigReader extends Object
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
Constructors Constructor Description ConfigReader(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Reference>
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 patternsSchemaOutputResolver
getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas
-
-
-
Constructor Detail
-
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 Detail
-
getClassesToBeIncluded
public Collection<Reference> 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
public SchemaOutputResolver getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas
-
-