Package com.alibaba.citrus.asm

Examples of com.alibaba.citrus.asm.AnnotationVisitor.visit()


    private final class AnnotationValueRule extends Rule {

        public void begin(final String nm, final Attributes attrs) throws SAXException {
            AnnotationVisitor av = (AnnotationVisitor) peek();
            if (av != null) {
                av.visit(attrs.getValue("name"), getValue(attrs.getValue("desc"), attrs.getValue("value")));
            }
        }
    }

    private final class AnnotationValueEnumRule extends Rule {
View Full Code Here


        if (c.isArray()) {
            AnnotationVisitor av = visitArray(name);
            if (value instanceof byte[]) {
                byte[] b = (byte[]) value;
                for (byte element : b) {
                    av.visit(null, new Byte(element));
                }

            } else if (value instanceof char[]) {
                char[] b = (char[]) value;
                for (char element : b) {
View Full Code Here

                }

            } else if (value instanceof char[]) {
                char[] b = (char[]) value;
                for (char element : b) {
                    av.visit(null, new Character(element));
                }

            } else if (value instanceof short[]) {
                short[] b = (short[]) value;
                for (short element : b) {
View Full Code Here

                }

            } else if (value instanceof short[]) {
                short[] b = (short[]) value;
                for (short element : b) {
                    av.visit(null, new Short(element));
                }

            } else if (value instanceof boolean[]) {
                boolean[] b = (boolean[]) value;
                for (boolean element : b) {
View Full Code Here

                }

            } else if (value instanceof boolean[]) {
                boolean[] b = (boolean[]) value;
                for (boolean element : b) {
                    av.visit(null, Boolean.valueOf(element));
                }

            } else if (value instanceof int[]) {
                int[] b = (int[]) value;
                for (int element : b) {
View Full Code Here

                }

            } else if (value instanceof int[]) {
                int[] b = (int[]) value;
                for (int element : b) {
                    av.visit(null, new Integer(element));
                }

            } else if (value instanceof long[]) {
                long[] b = (long[]) value;
                for (long element : b) {
View Full Code Here

                }

            } else if (value instanceof long[]) {
                long[] b = (long[]) value;
                for (long element : b) {
                    av.visit(null, new Long(element));
                }

            } else if (value instanceof float[]) {
                float[] b = (float[]) value;
                for (float element : b) {
View Full Code Here

                }

            } else if (value instanceof float[]) {
                float[] b = (float[]) value;
                for (float element : b) {
                    av.visit(null, new Float(element));
                }

            } else if (value instanceof double[]) {
                double[] b = (double[]) value;
                for (double element : b) {
View Full Code Here

                }

            } else if (value instanceof double[]) {
                double[] b = (double[]) value;
                for (double element : b) {
                    av.visit(null, new Double(element));
                }

            }
            av.visitEnd();
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.