*/
public class Main {
public static final int CONSTANT = 98;
public static void main(String[] args) throws Throwable {
AnnotationParser parser = new AnnotationParser(System.in); // can be only one
Annotation annotation = new Annotation();
// AnnotationVisitor.parse(annotation, parser.parse("@Annotation(hex=0xCAFEBABE)"));
// AnnotationVisitor.parse(annotation, parser.parse("@Annotation(cArr={java.lang.String.class, int.class, double[].class})"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(lng=3)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(lng=33598476398762L)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(lng=-33598476398762L)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(flt=33.345F)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(flt=-33.345f)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(dbl=33.345d)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(dbl=-33.345d)"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(\"value\")"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(key=true)"));
AnnotationVisitor.parse(
annotation,
parser.parse(
"@Annotation(constant=org.codehaus.aspectwerkz.annotation.expression.Main.CONSTANT lng=54543 flt=76.7F key=FALSE)"
)
);
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(sArr={\"hej\", \"hey\"})"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(bArr={TRUE, false})"));
AnnotationVisitor.parse(annotation, parser.parse("@Annotation(klass=java.lang.String.class)"));
AnnotationVisitor.parse(
annotation,
parser.parse("@Annotation(cArr={java.lang.String.class, int.class, double.class})")
);
// DumpVisitor.dumpAST(parser.parse("@Annotation(level=3)"));
// DumpVisitor.dumpAST(parser.parse("@Annotation(level=0xCAFEBABE)"));
// DumpVisitor.dumpAST(parser.parse("@Annotation(level=33598476398762L)"));