Fork of the Fernflower decompiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fernflower/testData/results/MoreAnnotations.dec

108 lines
3.5 KiB

package pkg;
public @interface MoreAnnotations {
@MoreAnnotations(
intValue = 1,
byteValue = 1,
floatValue = 1.0F,
doubleValue = 1.0D,
booleanValue = true,
shortValue = 1,
longValue = 1L,
charValue = '\n',
enumValue = MoreAnnotations.TestEnum.FirstValue,
annotationValue = @MoreAnnotations.NestedAnnotation("a"),
stringValue = "",
classValue = String.class
)
String annotatedWithValues = "";
@MoreAnnotations(
intArray = {},
byteArray = {},
floatArray = {},
doubleArray = {},
booleanArray = {},
shortArray = {},
longArray = {},
charArray = {},
enumArray = {},
annotationArray = {},
stringArray = {},
classArray = {}
)
String annotatedWithEmptyArrays = "";
@MoreAnnotations(
intArray = {1, 0, 2147483647, -2147483648},
byteArray = {(byte)1, (byte)0, (byte)127, (byte)-128},
floatArray = {1.0F, 0.0F, 3.4028235E38F, 1.4E-45F, 0.0F / 0.0, 1.0F / 0.0, -1.0F / 0.0},
doubleArray = {1.0D, 0.0D, 1.7976931348623157E308D, 4.9E-324D, 0.0D / 0.0, 1.0D / 0.0, -1.0D / 0.0},
booleanArray = {true, false},
shortArray = {(short)1, (short)0, (short)32767, (short)-32768},
longArray = {1L, 0L, 9223372036854775807L, -9223372036854775808L},
charArray = {'a', '\n', '\u0001', '\u0000', '\uffff', '\u0000'},
enumArray = {MoreAnnotations.TestEnum.FirstValue, MoreAnnotations.TestEnum.SecondValue},
annotationArray = {@MoreAnnotations.NestedAnnotation("a"), @MoreAnnotations.NestedAnnotation("b")},
stringArray = {"first", "second", ""},
classArray = {CharSequence.class, String.class, StringBuilder.class}
)
String annotatedWithArrays = "";
int intValue() default 1;
byte byteValue() default 1;
float floatValue() default 1.0F / 0.0;
double doubleValue() default 0.0D / 0.0;
boolean booleanValue() default true;
short shortValue() default 1;
long longValue() default 1L;
char charValue() default '0';
MoreAnnotations.TestEnum enumValue() default MoreAnnotations.TestEnum.FirstValue;
MoreAnnotations.NestedAnnotation annotationValue() default @MoreAnnotations.NestedAnnotation;
String stringValue() default "default";
Class<? extends CharSequence> classValue() default CharSequence.class;
int[] intArray() default {1, 0, 2147483647, -2147483648};
byte[] byteArray() default {(byte)1, (byte)0, (byte)127, (byte)-128};
float[] floatArray() default {1.0F, 0.0F, 3.4028235E38F, 1.4E-45F, 0.0F / 0.0, 1.0F / 0.0, -1.0F / 0.0};
double[] doubleArray() default {1.0D, 0.0D, 1.7976931348623157E308D, 4.9E-324D, 0.0D / 0.0, 1.0D / 0.0, -1.0D / 0.0};
boolean[] booleanArray() default {true, false};
short[] shortArray() default {(short)1, (short)0, (short)32767, (short)-32768};
long[] longArray() default {1L, 0L, 9223372036854775807L, -9223372036854775808L};
char[] charArray() default {'\u0001', '\u0000', '\uffff', '\u0000'};
MoreAnnotations.TestEnum[] enumArray() default {MoreAnnotations.TestEnum.FirstValue};
MoreAnnotations.NestedAnnotation[] annotationArray() default {@MoreAnnotations.NestedAnnotation};
String[] stringArray() default {"first", "second", ""};
Class<? extends CharSequence>[] classArray() default {CharSequence.class, String.class, StringBuilder.class};
public static enum TestEnum {
FirstValue,
SecondValue;
}
public @interface NestedAnnotation {
String value() default "MyString";
}
}