public interface ClassLibraryBuilder extends Serializable
SortedClassLibraryBuilder
bundles all classloaders, all sourcefolders and all sources.
The OrderedClassLibraryBuilder
on the other hand keeps track of the order in which sourcetypes are added.ClassLibraryBuilder appendClassLoader(ClassLoader classLoader)
classLoader
- the classloader to addClassLibraryBuilder appendDefaultClassLoaders()
ClassLibraryBuilder appendSourceFolder(File sourceFolder)
sourceFolder
- ClassLibraryBuilder appendSource(InputStream stream) throws IOException
stream
- IOException
- if an IOException is thrown, e.g. unsupported encodingClassLibraryBuilder appendSource(Reader reader)
reader
- ClassLibraryBuilder appendSource(URL url) throws IOException
url
- IOException
ClassLibraryBuilder appendSource(File file) throws IOException
file
- IOException
JavaSource addSource(InputStream stream) throws IOException
stream
- IOException
- if an IOException is thrown, e.g. unsupported encodingJavaSource addSource(Reader reader)
reader
- JavaSource addSource(URL url) throws IOException
url
- IOException
JavaSource addSource(File file) throws IOException
file
- IOException
ClassLibraryBuilder setDebugLexer(boolean debugLexer)
debugLexer
- ClassLibraryBuilder setDebugParser(boolean debugParser)
debugParser
- ClassLibraryBuilder setEncoding(String encoding)
encoding
- ClassLibraryBuilder setModelBuilderFactory(ModelBuilderFactory factory)
ModelBuilderFactory
which the parsers should use to construct the JavaModel Objectsfactory
- the modelBuilderFactoryClassLibraryBuilder setModelWriterFactory(ModelWriterFactory factory)
ModelWriterFactory
which is used by the classes when calling for the codeBlock.factory
- the modelWriterFactoryClassLibrary getClassLibrary()
ClassLibraryBuilder setErrorHander(ErrorHandler errorHandler)
errorHandler
- the errorHandlerCopyright © 2002–2015. All rights reserved.