|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.REngine.REXP org.rosuda.REngine.REXPVector org.rosuda.REngine.REXPList
public class REXPList
Represents a pairlist in R. Unlike the actual internal R implementation this one does not use CAR/CDR/TAG linked representation but a @link{RList} object.
Field Summary |
---|
Fields inherited from class org.rosuda.REngine.REXP |
---|
attr, maxDebugItems |
Constructor Summary | |
---|---|
REXPList(REXP value,
java.lang.String name)
|
|
REXPList(RList list)
|
|
REXPList(RList list,
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 |
isPairList()
check whether the REXP object is a pair-list |
boolean |
isRecursive()
check whether the REXP object is a recursive obejct |
int |
length()
returns the length of the vector (i.e. the number of elements) |
java.lang.String |
toDebugString()
returns representation that it useful for debugging (e.g. it includes attributes and may include vector values -- see REXP.maxDebugItems ) |
java.lang.String |
toString()
returns a string description of the object |
Methods inherited from class org.rosuda.REngine.REXPVector |
---|
isNA, isVector |
Methods inherited from class org.rosuda.REngine.REXP |
---|
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asString, asStrings, createDataFrame, createDoubleMatrix, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isLogical, isNull, isNumeric, isRaw, isReference, isString, isSymbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public REXPList(RList list)
public REXPList(RList list, REXPList attr)
public REXPList(REXP value, java.lang.String name)
Method Detail |
---|
public java.lang.Object asNativeJavaObject() throws REXPMismatchException
REXP
int[1]
and not Integer
).
asNativeJavaObject
in class REXP
REXPMismatchException
public int length()
REXPVector
length
in class REXPVector
public boolean isList()
REXP
REXP
object is a list (either generic vector or a pairlist - i.e. REXP.asList()
will succeed)
isList
in class REXP
true
if the receiver is a generic vector or a pair-list, false
otherwisepublic boolean isPairList()
REXP
REXP
object is a pair-list
isPairList
in class REXP
true
if the receiver is a pair-list, false
otherwisepublic boolean isRecursive()
REXP
REXP
object is a recursive obejct
isRecursive
in class REXP
true
if the receiver is a recursive object, false
otherwisepublic RList asList()
REXP
asList
in class REXP
public java.lang.String toString()
REXP
toString
in class REXPVector
REXP.asString()
for accessing string REXPs)public java.lang.String toDebugString()
REXP
REXP.maxDebugItems
)
toDebugString
in class REXPVector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |