Logo Search packages:      
Sourcecode: rjava version File versions  Download package

org::rosuda::JRI::REXP Class Reference

List of all members.


Detailed Description

This class encapsulates and caches R objects as returned from R. Currently it only converts certain SEXPs references from R into Java obejcts, but eventually bi-directional support should be added. The currently supported objects are string, integer and numeric vectors. All other types can be accessed only using xp reference and RNI methods.

Definition at line 12 of file REXP.java.


Public Member Functions

RBool asBool ()
double asDouble ()
double[] asDoubleArray ()
double[][] asDoubleMatrix ()
RFactor asFactor ()
int asInt ()
int[] asIntArray ()
RList asList ()
double[][] asMatrix ()
String asString ()
String[] asStringArray ()
String asSymbolName ()
RVector asVector ()
REXP getAttribute (String name)
REXP getAttributes ()
Object getContent ()
int getType ()
 REXP (boolean[] val)
 REXP (String[] val)
 REXP (int[] val)
 REXP (double[] val)
 REXP (int t, Object o, REXP at)
 REXP (int t, Object o)
 REXP ()
 REXP (Rengine re, long exp, boolean convert)
 REXP (Rengine re, long exp)
String toString ()

Static Public Member Functions

static String quoteString (String s)
static String xtName (int xt)

Public Attributes

int rtype
long xp

Static Public Attributes

static final int ANYSXP = 18
static final int BCODESXP = 21
static final int BUILTINSXP = 8
static final int CHARSXP = 9
static final int CLOSXP = 3
static final int CPLXSXP = 15
static final int DOTSXP = 17
static final int ENVSXP = 4
static final int EXPRSXP = 20
static final int EXTPTRSXP = 22
static final int FUNSXP = 99
static final int INTSXP = 13
static final int LANGSXP = 6
static final int LGLSXP = 10
static final int LISTSXP = 2
static final int NILSXP = 0
static final int PROMSXP = 5
static final int RAWSXP = 24
static final int REALSXP = 14
static final int S4SXP = 25
static final int SPECIALSXP = 7
static final int STRSXP = 16
static final int SYMSXP = 1
static final int VECSXP = 19
static final int WEAKREFSXP = 23
static final int XT_ARRAY_BOOL = 36
static final int XT_ARRAY_BOOL_INT = 37
static final int XT_ARRAY_BOOL_UA = 35
static final int XT_ARRAY_DOUBLE = 33
static final int XT_ARRAY_INT = 32
static final int XT_ARRAY_STR = 34
static final int XT_BOOL = 6
static final int XT_CLOS = 18
static final int XT_DOUBLE = 2
static final int XT_FACTOR = 127
static final int XT_INT = 1
static final int XT_LANG = 4
static final int XT_LIST = 17
static final int XT_NONE = -1
static final int XT_NULL = 0
static final int XT_STR = 3
static final int XT_SYM = 5
static final int XT_UNKNOWN = 48
static final int XT_VECTOR = 16

Protected Member Functions

void finalize () throws Throwable

Package Functions

Rengine getEngine ()

Package Attributes

REXP attr
long cachedBinaryLength = -1
Object cont
Rengine eng
int Xt

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index