Package javarepl.expressions

Examples of javarepl.expressions.Import$functions


        return new EvaluationContext(randomOutputDirectory(), defaultExpressions(), empty(Result.class), none(String.class));
    }

    private static Sequence<Expression> defaultJavaImports() {
        return sequence(
                new Import("import java.lang.*", "java.lang.*"),
                new Import("import java.util.*", "java.util.*"),
                new Import("import java.math.*", "java.math.*"),
                new Import("import static java.lang.Math.*", "java.lang.Math.*")
        ).safeCast(Expression.class);
    }
View Full Code Here


        ).safeCast(Expression.class);
    }

    private static Sequence<Expression> defaultJava8Imports() {
        return javaVersionAtLeast("1.8.0")
                ? sequence(new Import("import java.util.function.*", "java.util.function.*")).safeCast(Expression.class)
                : empty(Expression.class);
    }
View Full Code Here

TOP

Related Classes of javarepl.expressions.Import$functions

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.