Package erjang

Examples of erjang.BIF.type()


    private static String erlangNameOfMethod(Method method) {
        BIF bif_ann = method.getAnnotation(BIF.class);
        if (bif_ann != null) {
            String bif_name = bif_ann.name().equals("__SELFNAME__") ? method.getName() : bif_ann.name();
            if (bif_ann.type() == BIF.Type.GUARD) return bif_name + "\1";
            else return bif_name;
        } else {
            return method.getName();
        }
    }
View Full Code Here


    }

    private static boolean isGuardBifMethod(Method method) {
        BIF bif_ann = method.getAnnotation(BIF.class);
        return (bif_ann != null &&
                bif_ann.type() == BIF.Type.GUARD);
    }

    /*==================== Code generation of EFun{arity}: ==================*/
    @SuppressWarnings("unchecked")
    public static Class<? extends EFun> get_fun_class(int arity) {
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.