package com.elab.annno;

import java.lang.annotation.*;

/**
 * @Module TODO
 * @Description TODO
 * @Author liukaixiong
 * @Date 2021/1/22 19:16
 */
public class AnnotationTest {
    @Target(value = ElementType.TYPE)
    @Retention(value = RetentionPolicy.RUNTIME)
    @Inherited // 声明注解具有继承性
    public @interface Author {

        String[] author() default {};
    }

    @Target(value = ElementType.TYPE)
    @Retention(value = RetentionPolicy.RUNTIME)
    @Inherited // 声明注解具有继承性
    public @interface Phone {
        String[] phone();
    }

    @Author
    @Phone(phone = {"abc"})
    public @interface Invoke {

    }

    class Process {

    }

}
