Class JavaCompilerStepdefs
java.lang.Object
de.monochromata.cucumber.stepdefs.JavaCompilerStepdefs
public class JavaCompilerStepdefs
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJavaCompilerStepdefs.DefiningClassLoader -
Constructor Summary
Constructors Constructor Description JavaCompilerStepdefs(JavaCompilerState state) -
Method Summary
Modifier and Type Method Description voidaClassFromSource(java.lang.String className, io.cucumber.docstring.DocString javaSource)voidanInstanceOfTheClassIsCreated()protected java.lang.StringconvertPackageToDirectories(java.lang.String className, java.lang.String fileSuffix)protected java.lang.ClassdefineClass(java.lang.String className, java.nio.file.Path outputDir)protected java.nio.file.PathsaveSource(java.lang.String className, java.lang.String javaSource)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JavaCompilerStepdefs
-
-
Method Details
-
aClassFromSource
@Given("a class {string} from source:") public void aClassFromSource(java.lang.String className, io.cucumber.docstring.DocString javaSource) -
anInstanceOfTheClassIsCreated
@When("an instance of the class is created") public void anInstanceOfTheClassIsCreated() -
saveSource
protected java.nio.file.Path saveSource(java.lang.String className, java.lang.String javaSource) throws java.io.IOException- Throws:
java.io.IOException
-
defineClass
protected java.lang.Class defineClass(java.lang.String className, java.nio.file.Path outputDir) throws java.io.IOException- Throws:
java.io.IOException
-
convertPackageToDirectories
protected java.lang.String convertPackageToDirectories(java.lang.String className, java.lang.String fileSuffix)
-