Package com.googlecode.aviator.runtime.type

Examples of com.googlecode.aviator.runtime.type.AviatorObject.desc()



    public static Object getJavaObject(int index, AviatorObject[] args, Map<String, Object> env) {
        final AviatorObject arg = args[index];
        if (!(arg instanceof AviatorJavaType)) {
            throw new ExpressionRuntimeException(arg.desc(env) + " is not a javaType");
        }
        return env.get(((AviatorJavaType) arg).getName());
    }

View Full Code Here



    public static AviatorFunction getFunction(int index, AviatorObject[] args, Map<String, Object> env, int arity) {
        final AviatorObject arg = args[index];
        if (!(arg instanceof AviatorJavaType)) {
            throw new ExpressionRuntimeException(arg.desc(env) + " is not a function");
        }
        // special processing for "-" operator
        String name = ((AviatorJavaType) arg).getName();
        if (name.equals("-")) {
            if (arity == 2) {
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.