|
||||||||
| 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.REXPNull
public class REXPNull
represents a NULL object in R.
Note: there is a slight asymmetry - in R NULL is represented by a zero-length pairlist. For this reason REXPNull returns true for isList() and asList() will return an empty list. Nonetheless REXPList of the length 0 will NOT return true in isNull() (currently), becasue it is considered a different object in Java. These nuances are still subject to change, because it's not clear how it should be treated. At any rate use REXPNull instead of empty REXPList if NULL is the intended value.
| Field Summary |
|---|
| Fields inherited from class org.rosuda.REngine.REXP |
|---|
attr, maxDebugItems |
| Constructor Summary | |
|---|---|
REXPNull()
|
|
REXPNull(REXPList attr)
|
|
| Method Summary | |
|---|---|
RList |
asList()
returns the contents as a (named) list (if supported by the represented object) |
java.lang.Object |
asNativeJavaObject()
attempt to represent the REXP by a native Java object and return it. |
boolean |
isList()
check whether the REXP object is a list (either generic vector or a pairlist - i.e. |
boolean |
isNull()
check whether the REXP object is NULL |
| Methods inherited from class org.rosuda.REngine.REXP |
|---|
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asString, asStrings, createDataFrame, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isLogical, isNA, 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 REXPNull()
public REXPNull(REXPList attr)
| Method Detail |
|---|
public boolean isNull()
REXPREXP object is NULL
isNull in class REXPtrue if the receiver is NULL, false otherwisepublic boolean isList()
REXPREXP object is a list (either generic vector or a pairlist - i.e. REXP.asList() will succeed)
isList in class REXPtrue if the receiver is a generic vector or a pair-list, false otherwisepublic RList asList()
REXP
asList in class REXPpublic java.lang.Object asNativeJavaObject()
REXPint[1] and not Integer).
asNativeJavaObject in class REXP
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||