Package io.cucumber.java
Class JavaStaticHookDefinition
java.lang.Object
io.cucumber.java.AbstractGlueDefinition
io.cucumber.java.JavaStaticHookDefinition
- All Implemented Interfaces:
Located,StaticHookDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.cucumber.core.backend.StaticHookDefinition
StaticHookDefinition.HookType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StaticHookDefinition.HookTypeprivate final Stringprivate final intFields inherited from class io.cucumber.java.AbstractGlueDefinition
method -
Constructor Summary
ConstructorsConstructorDescriptionJavaStaticHookDefinition(StaticHookDefinition.HookType hookType, Method method, int order, String name, Lookup lookup) -
Method Summary
Modifier and TypeMethodDescriptionprivate static InvalidMethodSignatureExceptionvoidexecute()getName()intgetOrder()private static MethodrequireValidMethod(Method method) Methods inherited from class io.cucumber.java.AbstractGlueDefinition
getLocation, getSourceReference, invokeMethod, isDefinedAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.core.backend.Located
getLocation, getSourceReference, isDefinedAt
-
Field Details
-
hookType
-
order
private final int order -
name
-
-
Constructor Details
-
JavaStaticHookDefinition
JavaStaticHookDefinition(StaticHookDefinition.HookType hookType, Method method, int order, String name, Lookup lookup)
-
-
Method Details
-
requireValidMethod
-
createInvalidSignatureException
-
execute
public void execute()- Specified by:
executein interfaceStaticHookDefinition
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceStaticHookDefinition
-
getName
- Specified by:
getNamein interfaceStaticHookDefinition
-
getHookType
- Specified by:
getHookTypein interfaceStaticHookDefinition
-