Claims a field so as to ensure that only a single annotation is applied to any single field. When a transformation occurs (driven by a field annotation), the first thing that occurs is to claim the field, on behalf of the annotation.
@param fieldName the name of the field that is being claimed
@param tag a non-null object that represents why the field is being tagged (this is typically a specific annotation on the field)
@throws IllegalArgumentException if the fieldName does not correspond to a declared instance field
@throws IllegalStateException if the field is already claimed for some other tag
Claims a field so as to ensure that only a single annotation is applied to any single field. When a transformation occurs (driven by a field annotation), the field is claimed (using the annotation object as the tag). If a field has multiple conflicting annotations, this will be discovered when the code attempts to claim the field a second time.
@param fieldName the name of the field that is being claimed
@param tag a non-null object that represents why the field is being tagged (this is typically a specific annotation on the field)
@throws IllegalArgumentException if the fieldName does not correspond to a declared instance field
@throws IllegalStateException if the field is already claimed for some other tag
@deprecated Use {@link TransformField#claim(Object)} instead
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.