org.rosuda.REngine
Class REXPUnknown

java.lang.Object
  extended by org.rosuda.REngine.REXP
      extended by org.rosuda.REngine.REXPUnknown

public class REXPUnknown
extends REXP

REXPUnknown is a stand-in for an object that cannot be represented in the REngine hierarchy. Usually this class can be encountered when new types are introduced in R or if a given engine doesn't support all data types. Usually REXPUnknown can only be retrieved from the engine but never assigned.


Field Summary
 
Fields inherited from class org.rosuda.REngine.REXP
attr, maxDebugItems
 
Constructor Summary
REXPUnknown(int type)
          creates a new unknown object of the given type
REXPUnknown(int type, REXPList attr)
          creates a new unknown object of the given type
 
Method Summary
 int getType()
          returns the internal R type of this unknown obejct
 java.lang.String toString()
          returns a string description of the object
 
Methods inherited from class org.rosuda.REngine.REXP
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asList, asNativeJavaObject, asString, asStrings, createDataFrame, createDoubleMatrix, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isList, isLogical, isNA, isNull, isNumeric, isPairList, isRaw, isRecursive, isReference, isString, isSymbol, isVector, length, toDebugString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

REXPUnknown

public REXPUnknown(int type)
creates a new unknown object of the given type

Parameters:
type - internal R type code of this object

REXPUnknown

public REXPUnknown(int type,
                   REXPList attr)
creates a new unknown object of the given type

Parameters:
type - internal R type code of this object
attr - attributes
Method Detail

getType

public int getType()
returns the internal R type of this unknown obejct

Returns:
type code

toString

public java.lang.String toString()
Description copied from class: REXP
returns a string description of the object

Overrides:
toString in class REXP
Returns:
string describing the object - it can be of an arbitrary form and used only for debugging (do not confuse with REXP.asString() for accessing string REXPs)