Package io.determann.shadow.impl.test
Class ProcessorTestImpl
java.lang.Object
io.determann.shadow.impl.test.ProcessorTestImpl
- All Implemented Interfaces:
ProcessorTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile()Compiles the classes and invokes theProcessingCallbackwithCodeToCompile(File fileToCompile) adds an existing file to compilewithCodeToCompile(String fileName, String code) adds a new file to compilewithCompiledClass(Class<?> aClass) This already compiled class will also be processedwithCompiledClass(String qualifiedName) This already compiled class will also be processedwithOption(String option) Compiler options
-
Constructor Details
-
ProcessorTestImpl
-
-
Method Details
-
withCodeToCompile
Description copied from interface:ProcessorTestadds an existing file to compile- Specified by:
withCodeToCompilein interfaceProcessorTest- Returns:
- a new
ProcessorTest
-
withCodeToCompile
Description copied from interface:ProcessorTestadds a new file to compile- Specified by:
withCodeToCompilein interfaceProcessorTest- Parameters:
fileName- MyClass.javacode- the sourceCode of the file- Returns:
- a new
ProcessorTest
-
withOption
Description copied from interface:ProcessorTestCompiler options- Specified by:
withOptionin interfaceProcessorTest- Returns:
- a new
ProcessorTest
-
withCompiledClass
Description copied from interface:ProcessorTestThis already compiled class will also be processed- Specified by:
withCompiledClassin interfaceProcessorTest- Parameters:
qualifiedName- java.lang.Object- Returns:
- a new
ProcessorTest
-
withCompiledClass
Description copied from interface:ProcessorTestThis already compiled class will also be processed- Specified by:
withCompiledClassin interfaceProcessorTest- Returns:
- a new
ProcessorTest
-
compile
public void compile()Description copied from interface:ProcessorTestCompiles the classes and invokes theProcessingCallback- Specified by:
compilein interfaceProcessorTest
-