@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Repeatable(value=ProtoReservedStatements.class) public @interface ProtoReserved
All ProtoReserved
annotations from the superclass and implemented/extended interfaces are inherited
(recursively up the hierarchy) and the numbers, ranges and names are merged. No duplicates or overlaps must be
found in the process or else an error will be generated. Regardless of how many annotations are found, after
merging at most two 'reserved' statements will be issued, one for numbers/ranges and one for names. Their contents
will be sorted ascendingly.
This annotation is not explicitly marked Inherited
but annotation processors will scan
for occurrences of this annotation in all superclasses and superinterfaces (recursively).
public abstract int[] numbers
value()
(mutually exclusive).public abstract int[] value
numbers()
(mutually exclusive).public abstract ProtoReserved.Range[] ranges
public abstract String[] names
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.