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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.