|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.rosuda.REngine.REXP
org.rosuda.REngine.REXPEnvironment
public class REXPEnvironment
REXPEnvironment represents an environment in R. Very much like REXPReference this is a proxy object to the actual object on the R side. It provides methods for accessing the content of the environment. The actual implementation may vary by the back-end used and not all engines support environments. Check org.rosuda.REngine.REngine.supportsEnvironments() for the given engine. Environments are specific for a given engine, they cannot be passed across engines.
| Field Summary |
|---|
| Fields inherited from class org.rosuda.REngine.REXP |
|---|
attr, maxDebugItems |
| Constructor Summary | |
|---|---|
REXPEnvironment(REngine eng,
java.lang.Object handle)
create a new environemnt reference - this constructor should never be used directly, use REngine.newEnvironment() instead. |
|
| Method Summary | |
|---|---|
void |
assign(java.lang.String name,
REXP value)
assigns a value to a given symbol name |
REXP |
get(java.lang.String name)
get a value from this environment - equavalent to get(name, true). |
REXP |
get(java.lang.String name,
boolean resolve)
get a value from this environment |
java.lang.Object |
getHandle()
returns the handle used to identify this environemnt in the engine - for internal use by engine implementations only |
boolean |
isEnvironment()
check whether the REXP object is an environment |
REXPEnvironment |
parent()
returns the parent environment. |
REXP |
parent(boolean resolve)
returns the parent environment or a reference to it |
| Methods inherited from class org.rosuda.REngine.REXP |
|---|
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asList, asNativeJavaObject, asString, asStrings, createDataFrame, dim, getAttribute, hasAttribute, inherits, isComplex, isExpression, isFactor, isInteger, isLanguage, isList, isLogical, isNA, isNull, isNumeric, isPairList, isRaw, isRecursive, isReference, isString, isSymbol, isVector, length, toDebugString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public REXPEnvironment(REngine eng,
java.lang.Object handle)
REngine.newEnvironment() instead.
eng - engine responsible for this environmenthandle - handle used by the engine to identify this environment| Method Detail |
|---|
public boolean isEnvironment()
REXPREXP object is an environment
isEnvironment in class REXPtrue if the receiver is an environment, false otherwisepublic java.lang.Object getHandle()
public REXP get(java.lang.String name,
boolean resolve)
throws REngineException
name - name of the valueresolve - if false returns a reference to the object, if false the reference is resolved
null if the value is unbound (the latter is currently engine-specific)
REngineException
public REXP get(java.lang.String name)
throws REngineException
get(name, true).
name - name of the value
get(String,boolean))
REngineException
public void assign(java.lang.String name,
REXP value)
throws REngineException,
REXPMismatchException
name - symbol namevalue - value
REngineException
REXPMismatchException
public REXP parent(boolean resolve)
throws REngineException
resolve - if true returns the environemnt, otherwise a reference.
REngineException
public REXPEnvironment parent()
throws REngineException
parent(true).
REngineException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||