Skip to content
Snippets Groups Projects
Commit 9b019f87 authored by Mick Jordan's avatar Mick Jordan
Browse files

javadoc fixes

parent 7946d074
Branches
No related tags found
No related merge requests found
......@@ -161,6 +161,15 @@ public final class REngine implements RContext.Engine {
return result;
}
/**
* This is tricky because the {@link Frame} "f" associated with {@code envir} has been
* materialized so we can't evaluate in it directly. Instead we create a new
* {@link VirtualFrame}, that is a logical clone of "f", evaluate in that, and then update "f"
* on return.
*
* @param function the actual function that invoked the "eval", e.g. {@code eval}, {@code evalq}
* , {@code local}.
*/
public Object eval(RFunction function, RLanguage expr, REnvironment envir, REnvironment enclos) throws PutException {
RootCallTarget callTarget = makeCallTarget((RNode) expr.getRep(), REnvironment.globalEnv());
MaterializedFrame envFrame = envir.getFrame();
......
......@@ -154,7 +154,7 @@ public final class RContext extends ExecutionContext {
Object parseAndEvalTest(String rscript, boolean printResult);
/**
* Support for the {@code eval} builtin using an {@link RExpression}.
* Evaluate an {@link RExpression} in a given environment {@code envir}.
*
* @param function identifies the eval variant, e.g. {@code local}, {@code eval},
* {@code evalq} being invoked.
......@@ -162,13 +162,8 @@ public final class RContext extends ExecutionContext {
Object eval(RFunction function, RExpression expr, REnvironment envir, REnvironment enclos) throws PutException;
/**
* Support for the {@code eval} builtin. This is tricky because the {@link Frame} "f"
* associated with {@code envir} has been materialized so we can't evaluate in it directly.
* Instead we create a new {@link VirtualFrame}, that is a logical clone of "f", evaluate in
* that, and then update "f" on return.
*
* @param function the actual function that invoked the "eval", e.g. {@code eval},
* {@code evalq} , {@code local}.
* Similar to {@link #eval(RFunction, RExpression, REnvironment, REnvironment)} but for a
* single langugge element.
*/
Object eval(RFunction function, RLanguage expr, REnvironment envir, REnvironment enclos) throws PutException;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment