rt/vm/src/test/java/org/apidesign/vm4brwsr/ClassesMarker.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 19 Mar 2016 10:31:13 +0100
changeset 1889 e1953d8b8338
parent 1787 ea12a3bb4b33
permissions -rw-r--r--
Support for default attributes of annotations
jaroslav@235
     1
/**
jaroslav@235
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1787
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@235
     4
 *
jaroslav@235
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@235
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@235
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@235
     8
 *
jaroslav@235
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@235
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@235
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@235
    12
 * GNU General Public License for more details.
jaroslav@235
    13
 *
jaroslav@235
    14
 * You should have received a copy of the GNU General Public License
jaroslav@235
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@235
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@235
    17
 */
jaroslav@235
    18
package org.apidesign.vm4brwsr;
jaroslav@235
    19
jaroslav@235
    20
import java.lang.annotation.Retention;
jaroslav@235
    21
import java.lang.annotation.RetentionPolicy;
jaroslav@235
    22
jaroslav@235
    23
/**
jaroslav@235
    24
 *
jaroslav@235
    25
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@235
    26
 */
jaroslav@235
    27
@Retention(RetentionPolicy.RUNTIME)
jaroslav@235
    28
public @interface ClassesMarker {
jaroslav@1889
    29
    int number() default 42;
jaroslav@652
    30
    String[] nicknames();
jaroslav@652
    31
    E count() default E.ONE;
jaroslav@1889
    32
    Class<?> self() default Object.class;
jaroslav@652
    33
    
jaroslav@652
    34
    enum E {
jaroslav@652
    35
        ONE, TWO;
jaroslav@652
    36
    }
jaroslav@659
    37
    
jaroslav@659
    38
    Anno[] subs() default {};
jaroslav@659
    39
    
jaroslav@659
    40
    public @interface Anno {
jaroslav@659
    41
        int value();
jaroslav@659
    42
    }
jaroslav@235
    43
}