public class DelegateMethodValidation
extends java.lang.Object
SpecMethodModel
s for a SpecModel
are well-formed.Constructor and Description |
---|
DelegateMethodValidation() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getOptionalParamsError(DelegateMethodDescription delegateMethodDescription) |
static java.lang.String |
getStringRepresentationOfParamTypes(ImmutableList<DelegateMethodDescription.OptionalParameterType> optionalParameterTypes) |
static boolean |
isOptionalParamValid(SpecModel specModel,
ImmutableList<DelegateMethodDescription.OptionalParameterType> parameterTypes,
MethodParamModel methodParamModel) |
static java.util.List<SpecModelValidationError> |
validateDefinedParameterTypes(SpecMethodModel<DelegateMethod,java.lang.Void> delegateMethod,
java.lang.Class<? extends java.lang.annotation.Annotation> delegateMethodAnnotation,
ImmutableList<TypeName> allowedArgTypes) |
static java.util.List<SpecModelValidationError> |
validateMethods(SpecModel specModel,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,DelegateMethodDescription> delegateMethodDescriptions,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Class<? extends java.lang.annotation.Annotation>> interStageInputsMap) |
public static java.util.List<SpecModelValidationError> validateMethods(SpecModel specModel, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,DelegateMethodDescription> delegateMethodDescriptions, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.Class<? extends java.lang.annotation.Annotation>> interStageInputsMap)
public static java.util.List<SpecModelValidationError> validateDefinedParameterTypes(SpecMethodModel<DelegateMethod,java.lang.Void> delegateMethod, java.lang.Class<? extends java.lang.annotation.Annotation> delegateMethodAnnotation, ImmutableList<TypeName> allowedArgTypes)
public static boolean isOptionalParamValid(SpecModel specModel, ImmutableList<DelegateMethodDescription.OptionalParameterType> parameterTypes, MethodParamModel methodParamModel)
public static java.lang.String getOptionalParamsError(DelegateMethodDescription delegateMethodDescription)
public static java.lang.String getStringRepresentationOfParamTypes(ImmutableList<DelegateMethodDescription.OptionalParameterType> optionalParameterTypes)