Package com.kre8orz.i18n.annotation

Examples of com.kre8orz.i18n.annotation.I18NResourceBundle


        /* Helper method used to calculate the base name and package name for
         * the bundle into which this annotation will have it's information
         * written to. */
        private void _calculateNames(VariableElement ele, I18NMessage msg) {
            Class<I18NResourceBundle> bClz = I18NResourceBundle.class;
            I18NResourceBundle rb = ele.getEnclosingElement().getAnnotation(bClz);
            String name;
            String pack;

            if (rb != null) {
                name = rb.bundleName();
                pack = rb.packageName();
            } else {
                Elements eUtils = _pe.getElementUtils();

                pack = eUtils.getPackageOf(ele).getQualifiedName().toString();
                name = ele.getEnclosingElement().getSimpleName().toString();
View Full Code Here

TOP

Related Classes of com.kre8orz.i18n.annotation.I18NResourceBundle

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.