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 class  JavaCompilerStepdefs.DefiningClassLoader  
  • Constructor Summary

    Constructors
    Constructor Description
    JavaCompilerStepdefs​(JavaCompilerState state, ExceptionState exceptionState)  
  • Method Summary

    Modifier and Type Method Description
    void aClassFromSource​(java.lang.String className, io.cucumber.docstring.DocString javaSource)  
    void aClassFromSourceOSGI​(java.lang.String className, io.cucumber.docstring.DocString javaSource)  
    void anInstanceIsCreated​(java.lang.String typeName)  
    void anInstanceOfTheClassIsCreated()  
    void classesFromSource​(java.lang.String commaSeparatedClassNames, io.cucumber.docstring.DocString sources)  
    protected java.lang.Class compileClass​(java.lang.String className, java.lang.String javaSource, boolean delegateToParentClassLoader)  
    protected java.util.Map<java.lang.String,​java.lang.Class<?>> compileClasses​(java.lang.String[] classNames, java.lang.String[] sources, boolean delegateToParentClassLoader)  
    protected java.util.Map<java.lang.String,​java.lang.Class<?>> defineClasses​(java.util.Map<java.lang.String,​InMemoryCompilerOutput> outputs, boolean delegateToParentClassLoader)  
    protected java.util.List<InMemoryCompilerSource> javaFileObjects​(java.lang.String[] classNames, java.lang.String[] sources)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • aClassFromSource

      @Given("a class {string} from source:") public void aClassFromSource​(java.lang.String className, io.cucumber.docstring.DocString javaSource)
    • classesFromSource

      @Given("classes {string} from source:") public void classesFromSource​(java.lang.String commaSeparatedClassNames, io.cucumber.docstring.DocString sources)
    • aClassFromSourceOSGI

      @Given("a class {string} from source defined by a class loader that does not delegate to its parent:") public void aClassFromSourceOSGI​(java.lang.String className, io.cucumber.docstring.DocString javaSource)
    • anInstanceOfTheClassIsCreated

      @Given("an instance of the class") @When("an instance of the class is created") public void anInstanceOfTheClassIsCreated()
    • anInstanceIsCreated

      @Given("an instance of {string}") @When("an instance of {string} is created") public void anInstanceIsCreated​(java.lang.String typeName)
    • compileClass

      protected java.lang.Class compileClass​(java.lang.String className, java.lang.String javaSource, boolean delegateToParentClassLoader) throws java.io.IOException
      Throws:
      java.io.IOException
    • compileClasses

      protected java.util.Map<java.lang.String,​java.lang.Class<?>> compileClasses​(java.lang.String[] classNames, java.lang.String[] sources, boolean delegateToParentClassLoader) throws java.io.IOException
      Throws:
      java.io.IOException
    • javaFileObjects

      protected java.util.List<InMemoryCompilerSource> javaFileObjects​(java.lang.String[] classNames, java.lang.String[] sources)
    • defineClasses

      protected java.util.Map<java.lang.String,​java.lang.Class<?>> defineClasses​(java.util.Map<java.lang.String,​InMemoryCompilerOutput> outputs, boolean delegateToParentClassLoader)