Uses of Annotation Type
org.spockframework.util.Nullable
Packages that use Nullable
Package
Description
Spock's built-in mocking framework.
-
Uses of Nullable in org.spockframework.builder
Methods in org.spockframework.builder with annotations of type Nullable -
Uses of Nullable in org.spockframework.compiler
Methods in org.spockframework.compiler with annotations of type NullableModifier and TypeMethodDescriptionstatic org.codehaus.groovy.ast.expr.Expression
AstUtil.getAssertionMessage
(org.codehaus.groovy.ast.stmt.AssertStatement stat) org.codehaus.groovy.ast.expr.ClosureExpression
SpecialMethodCall.getClosureExpr()
org.codehaus.groovy.ast.stmt.ExpressionStatement
InteractionRewriter.rewrite
(org.codehaus.groovy.ast.stmt.ExpressionStatement stat) If the given statement is a valid interaction definition, returns the rewritten statement.Method parameters in org.spockframework.compiler with annotations of type NullableModifier and TypeMethodDescriptionstatic SpecialMethodCall
SpecialMethodCall.parse
(org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr) Constructor parameters in org.spockframework.compiler with annotations of type NullableModifierConstructorDescriptionInteractionRewriter
(IRewriteResources resources, org.codehaus.groovy.ast.expr.ClosureExpression activeWithOrMockClosure) SpecialMethodCall
(String methodName, org.codehaus.groovy.ast.expr.Expression inferredName, org.codehaus.groovy.ast.expr.Expression inferredType, org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr, org.codehaus.groovy.ast.expr.ClosureExpression closureExpr, boolean conditionBlock) SpecialMethodCall
(String methodName, org.codehaus.groovy.ast.expr.Expression inferredName, org.codehaus.groovy.ast.expr.Expression inferredType, org.codehaus.groovy.ast.expr.MethodCallExpression methodCallExpr, org.codehaus.groovy.ast.expr.BinaryExpression binaryExpr, org.codehaus.groovy.ast.expr.ClosureExpression closureExpr, boolean conditionBlock) -
Uses of Nullable in org.spockframework.lang
Method parameters in org.spockframework.lang with annotations of type NullableModifier and TypeMethodDescriptionSpecInternals.createMock
(String name, Class<?> type, MockNature nature, MockImplementation implementation, Map<String, Object> options, groovy.lang.Closure closure) SpecInternals.createMock
(String name, Class<?> type, MockNature nature, MockImplementation implementation, Map<String, Object> options, groovy.lang.Closure closure) -
Uses of Nullable in org.spockframework.mock
Methods in org.spockframework.mock with annotations of type NullableModifier and TypeMethodDescriptionIMockInteraction.accept
(IMockInvocation invocation) IMockConfiguration.getConstructorArgs()
Returns the constructor arguments to be used for creating the mock object.IMockConfiguration.getName()
Returns the name of the mock object.IMockObject.getName()
Returns the name of this mock object, ornull
if it has no name. -
Uses of Nullable in org.spockframework.mock.runtime
Methods in org.spockframework.mock.runtime with annotations of type NullableModifier and TypeMethodDescriptionMockConfiguration.getConstructorArgs()
MockConfiguration.getName()
MockObject.getName()
Class
<?> MockObject.getType()
Method parameters in org.spockframework.mock.runtime with annotations of type NullableModifier and TypeMethodDescriptionProxyBasedMockFactory.create
(Class<?> mockType, List<Class<?>> additionalInterfaces, List<Object> constructorArgs, IProxyBasedMockInterceptor mockInterceptor, ClassLoader classLoader, boolean useObjenesis) static Object
MockInstantiator.instantiate
(Class<?> declaredType, Class<?> actualType, List<Object> constructorArgs, boolean useObjenesis) Constructor parameters in org.spockframework.mock.runtime with annotations of type NullableModifierConstructorDescriptionMockConfiguration
(String name, Class<?> type, MockNature nature, MockImplementation implementation, Map<String, Object> options) MockObject
(String name, Class<?> type, Object instance, boolean verified, boolean global, IDefaultResponse defaultResponse, Specification specification) -
Uses of Nullable in org.spockframework.runtime
Methods in org.spockframework.runtime with annotations of type NullableModifier and TypeMethodDescription<T> T
RunContext.getConfiguration
(Class<T> type) Condition.getExpression()
Condition.getMessage()
static String
GroovyRuntimeUtil.getterMethodToPropertyName
(String methodName, List<Class<?>> parameterTypes, Class<?> returnType) Checks if the given method is a getter method according to Groovy rules.Condition.getText()
Condition.getValues()
ConfigurationScriptLoader.loadAutoDetectedScript()
Method parameters in org.spockframework.runtime with annotations of type NullableModifier and TypeMethodDescriptionstatic String
HamcrestFacade.getFailureDescription
(Object matcher, Object value, String message) static boolean
GroovyRuntimeUtil.isVoidMethod
(Object target, String method, Object... args) static void
SpockRuntime.verifyCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object condition) static void
SpockRuntime.verifyCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object condition) static void
SpockRuntime.verifyCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object condition) static void
SpockRuntime.verifyCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object condition) static void
SpockRuntime.verifyMethodCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) static void
SpockRuntime.verifyMethodCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) static void
SpockRuntime.verifyMethodCondition
(ValueRecorder recorder, String text, int line, int column, Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) static <T,
U extends Throwable>
TRunContext.withNewContext
(DelegatingScript configurationScript, List<Class<?>> extensionClasses, boolean inheritParentExtensions, IThrowableFunction<RunContext, T, U> command) Constructor parameters in org.spockframework.runtime with annotations of type NullableModifierConstructorDescriptionUnallowedExceptionThrownError
(Class<? extends Throwable> unallowed, Throwable actual) WrongExceptionThrownError
(Class<? extends Throwable> expected, Throwable actual) -
Uses of Nullable in org.spockframework.runtime.extension
Methods in org.spockframework.runtime.extension with annotations of type NullableModifier and TypeMethodDescriptionIMethodInvocation.getFeature()
Returns the feature which this method invocation belongs to (if any).IMethodInvocation.getIteration()
Return the iteration which this method invocation belongs to (if any). -
Uses of Nullable in org.spockframework.runtime.extension.builtin
Fields in org.spockframework.runtime.extension.builtin with annotations of type NullableModifier and TypeFieldDescriptionprotected static Class
<?> AbstractRuleExtension.methodRuleClass
protected static Class
<?> AbstractRuleExtension.testRuleClass
Method parameters in org.spockframework.runtime.extension.builtin with annotations of type NullableModifier and TypeMethodDescriptionprotected boolean
AbstractRuleExtension.hasFieldType
(FieldInfo field, Class<?> ruleClass) -
Uses of Nullable in org.spockframework.runtime.model
Methods in org.spockframework.runtime.model with annotations of type NullableModifier and TypeMethodDescriptionorg.junit.runner.Description
NodeInfo.getDescription()
MethodInfo.getFeature()
FeatureInfo.getIterationNameProvider()
NodeInfo.getMetadata()
Constructor parameters in org.spockframework.runtime.model with annotations of type NullableModifierConstructorDescriptionExpressionInfo
(TextRegion region, TextPosition anchor, String operation, List<ExpressionInfo> children) ExpressionInfo
(TextRegion region, TextPosition anchor, String operation, ExpressionInfo... children) -
Uses of Nullable in org.spockframework.util
Methods in org.spockframework.util with annotations of type NullableModifier and TypeMethodDescriptionstatic <T> T
ObjectUtil.asInstance
(Object obj, Class<T> type) static Method
ReflectionUtil.getDeclaredMethodByName
(Class<?> clazz, String name) static Method
ReflectionUtil.getDeclaredMethodBySignature
(Class<?> clazz, String name, Class<?>... parameterTypes) static <T> T
CollectionUtil.getLastElement
(List<T> list) static Method
ReflectionUtil.getMethodByName
(Class<?> clazz, String name) Finds a public method with the given name declared in the given class/interface or one of its super classes/interfaces.static Method
ReflectionUtil.getMethodBySignature
(Class<?> clazz, String name, Class<?>... parameterTypes) static Object
ReflectionUtil.invokeMethod
(Object target, Method method, Object... args) Method parameters in org.spockframework.util with annotations of type NullableModifier and TypeMethodDescriptionstatic void
IoUtil.closeQuietly
(Closeable... closeables) static Object
ReflectionUtil.invokeMethod
(Object target, Method method, Object... args) static Object
ReflectionUtil.invokeMethod
(Object target, Method method, Object... args) Constructor parameters in org.spockframework.util with annotations of type Nullable