Package booton.translator.annotation

Examples of booton.translator.annotation.StringMarker


        set = annotations[1];
        assert set.length == 1;
        assert set[0] instanceof StringMarker;

        StringMarker string = (StringMarker) set[0];
        assert string.value().equals("string");

        set = annotations[2];
        assert set.length == 0;
    }
View Full Code Here


        set = annotations[1];
        assert set.length == 1;
        assert set[0] instanceof StringMarker;

        StringMarker string = (StringMarker) set[0];
        assert string.value().equals("string");

        set = annotations[2];
        assert set.length == 0;
    }
View Full Code Here

        Annotation[] annotations = Annotated.class.getAnnotations();
        assert annotations instanceof Annotation[];
        assert annotations.length == 2;

        PrimitiveMarker a1;
        StringMarker a2;

        if (annotations[0] instanceof PrimitiveMarker) {
            a1 = (PrimitiveMarker) annotations[0];
            a2 = (StringMarker) annotations[1];
        } else {
            a1 = (PrimitiveMarker) annotations[1];
            a2 = (StringMarker) annotations[0];
        }

        assert a1.intValue() == 5;
        assert a2.value().equals("value");
    }
View Full Code Here

TOP

Related Classes of booton.translator.annotation.StringMarker

Copyright © 2018 www.massapicom. 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.