Package erjang

Examples of erjang.BIF


            throw new Error(e);
        }
    }

    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


            return method.getName();
        }
    }

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

TOP

Related Classes of erjang.BIF

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.