public class MethodMetaConstraint<A extends Annotation> extends MetaConstraint<A>
MetaConstraint implementation that represents a method parameter or return value constraint.location| Constructor and Description |
|---|
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
Method method)
Creates a new
MethodMetaConstraint representing a method
return value constraint. |
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
MethodConstraintLocation location)
Creates a new
MethodMetaConstraint representing a method
parameter constraint. |
MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor,
Method method,
int parameterIndex)
Creates a new
MethodMetaConstraint representing a method
parameter constraint. |
equals, getDescriptor, getElementType, getGroupList, getLocation, hashCode, toString, typeOfAnnotatedElement, validateConstraintpublic MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Method method, int parameterIndex)
MethodMetaConstraint representing a method
parameter constraint.constraintDescriptor - The descriptor for this constraint.method - The method hosting this constraint.parameterIndex - The index of the parameter hosting this constraint.public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, Method method)
MethodMetaConstraint representing a method
return value constraint.constraintDescriptor - The descriptor for this constraint.method - The method hosting this constraint.public MethodMetaConstraint(ConstraintDescriptorImpl<A> constraintDescriptor, MethodConstraintLocation location)
MethodMetaConstraint representing a method
parameter constraint.constraintDescriptor - The descriptor for this constraint.location - The location of this constraint.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.