public class ExecutableConstraintMappingContextImpl extends Object implements ConstructorConstraintMappingContext, MethodConstraintMappingContext
Constructor and Description |
---|
ExecutableConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext,
Constructor<?> constructor) |
ExecutableConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext,
Method method) |
Modifier and Type | Method and Description |
---|---|
ConstrainedElement |
build(ConstraintHelper constraintHelper,
ParameterNameProvider parameterNameProvider) |
CrossParameterConstraintMappingContext |
crossParameter()
Selects the cross-parameter element of a method or constructor as target for the next constraint declaration
operations.
|
ExecutableElement |
getExecutable() |
TypeConstraintMappingContextImpl<?> |
getTypeContext() |
ParameterConstraintMappingContext |
parameter(int index)
Changes the parameter for which added constraints apply.
|
ReturnValueConstraintMappingContext |
returnValue()
Selects the current method's return value as the target for the next operations.
|
public ExecutableConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, Constructor<?> constructor)
public ExecutableConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, Method method)
public ParameterConstraintMappingContext parameter(int index)
ParameterTarget
parameter
in interface ParameterTarget
index
- The parameter index.public CrossParameterConstraintMappingContext crossParameter()
CrossParameterTarget
crossParameter
in interface CrossParameterTarget
public ReturnValueConstraintMappingContext returnValue()
ReturnValueTarget
returnValue
in interface ReturnValueTarget
public ExecutableElement getExecutable()
public TypeConstraintMappingContextImpl<?> getTypeContext()
public ConstrainedElement build(ConstraintHelper constraintHelper, ParameterNameProvider parameterNameProvider)
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved