File: REXPUnknown.java

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (24 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.rosuda.REngine;

/** 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. */
public class REXPUnknown extends REXP {
	/** type of the unterlying obejct */
	int type;

	/** creates a new unknown object of the given type
	 *  @param type internal R type code of this object */
	public REXPUnknown(int type) { super(); this.type=type; }

	/** creates a new unknown object of the given type
	 *  @param type internal R type code of this object
	 *  @param attr attributes */
	public REXPUnknown(int type, REXPList attr) { super(attr); this.type=type; }
	
	/** returns the internal R type of this unknown obejct
	 *  @return type code */
	public int getType() { return type; }
	
	public String toString() {
		return super.toString()+"["+type+"]";
	}
}