aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/processor/annotations/Patch.java
blob: 55715efcf8115a759d39ead15ebbe9d97c6288d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package ftbsc.lll.processor.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Marks the class as containing an injector for a user-specified {@link Class}.
 * It will be discarded unless {@link Target} and {@link Injector} are properly
 * placed within the annotated class.
 * @see Target
 * @see Injector
 */
@Retention(RetentionPolicy.CLASS)
@java.lang.annotation.Target(ElementType.TYPE)
public @interface Patch {
   /**
    * @return the {@link Class} to target for patching
    */
   Class<?> value();

   /**
    * This contains the inner class name(s) to append, separated by a $ symbol, to the already
    * acquired fully-qualified name.
    * If a number is provided instead of a valid name, the class will be treated as an
    * anonymous class, and will therefore be skipped in verification.
    * @return the name or path of the inner class that contain the target, defaults to array containing
    *         a single empty string (not an inner class)
    * @since 0.5.0
    */
   String[] inner() default {};
}