Class ModifyableSourceLibrary
- java.lang.Object
-
- com.thoughtworks.qdox.library.AbstractClassLibrary
-
- com.thoughtworks.qdox.library.SourceLibrary
-
- com.devonfw.cobigen.javaplugin.merger.libextension.ModifyableSourceLibrary
-
- All Implemented Interfaces:
com.thoughtworks.qdox.library.ClassLibrary,Serializable
public class ModifyableSourceLibrary extends com.thoughtworks.qdox.library.SourceLibrarySourceLibraryparsing inputs into theJavaSourcerepresentation by using aModifyableModelBuilderin order to get the internal representation ofJavaClassesasModifyableJavaClasses- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModifyableSourceLibrary(com.thoughtworks.qdox.library.AbstractClassLibrary parent)Creates a newModifyableJavaClass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.thoughtworks.qdox.model.JavaSourceaddSource(Object source)Adds a source to the source repository and returns it representativeJavaSourceprotected com.thoughtworks.qdox.builder.BuildergetModelBuilder()protected com.thoughtworks.qdox.model.JavaSourceparse(InputStream stream, URL url, com.thoughtworks.qdox.builder.Builder modelBuilder)Parses the given stream contents and closes the stream if any exception occursprotected com.thoughtworks.qdox.model.JavaSourceparse(Reader reader, URL url, com.thoughtworks.qdox.builder.Builder modelBuilder)Parses the given reader contents and closes the reader if any exception occurs-
Methods inherited from class com.thoughtworks.qdox.library.SourceLibrary
addSource, addSource, addSource, addSource, containsClassReference, getEncoding, getErrorHandler, getJavaClasses, getJavaPackages, getJavaSources, isDebugLexer, isDebugParser, registerJavaSource, resolveJavaClass, resolveJavaPackage, setDebugLexer, setDebugParser, setEncoding, setErrorHandler
-
Methods inherited from class com.thoughtworks.qdox.library.AbstractClassLibrary
getJavaClass, getJavaClass, getJavaClasses, getJavaModules, getJavaPackage, getJavaPackages, getJavaSources, getModelBuilder, getModelBuilderFactory, getModelWriterFactory, hasClassReference, setModelBuilderFactory, setModelWriterFactory
-
-
-
-
Constructor Detail
-
ModifyableSourceLibrary
public ModifyableSourceLibrary(com.thoughtworks.qdox.library.AbstractClassLibrary parent)
Creates a newModifyableJavaClass- Parameters:
parent-ClassLibrary
-
-
Method Detail
-
addSource
public com.thoughtworks.qdox.model.JavaSource addSource(Object source) throws com.thoughtworks.qdox.parser.ParseException, IOException
Adds a source to the source repository and returns it representativeJavaSource- Parameters:
source- to be parsed- Returns:
- the created
JavaSource - Throws:
com.thoughtworks.qdox.parser.ParseException- if the given source could not be parsedIOException- if the given source was a file which could not be accessed
-
parse
protected com.thoughtworks.qdox.model.JavaSource parse(InputStream stream, URL url, com.thoughtworks.qdox.builder.Builder modelBuilder) throws com.thoughtworks.qdox.parser.ParseException
Parses the given stream contents and closes the stream if any exception occurs- Parameters:
stream- to be parsedurl- of the sourcemodelBuilder- used to construct the model- Returns:
- the created
JavaSource - Throws:
com.thoughtworks.qdox.parser.ParseException- if any exception occurs while parsing
-
parse
protected com.thoughtworks.qdox.model.JavaSource parse(Reader reader, URL url, com.thoughtworks.qdox.builder.Builder modelBuilder) throws com.thoughtworks.qdox.parser.ParseException
Parses the given reader contents and closes the reader if any exception occurs- Parameters:
reader- to be parsedurl- of the sourcemodelBuilder- used to construct the model- Returns:
- the created
JavaSource - Throws:
com.thoughtworks.qdox.parser.ParseException- if any exception occurs while parsing
-
getModelBuilder
protected com.thoughtworks.qdox.builder.Builder getModelBuilder()
- Overrides:
getModelBuilderin classcom.thoughtworks.qdox.library.AbstractClassLibrary
-
-