SJava (version 0.98.0)

omegahatReference: Creates a local object representing a Java reference

Description

On occassion, one can lose a reference to a Java object stored in the Omegahat databases. If one knows its identifier (i.e. Omegahat name) and whether it is an anonymous or named reference, one can recreate an R object that refers to this Java object and use this R object in subsequent calls to the Java interface.

Usage

omegahatReference(key, named=TRUE)

Arguments

key
the name used by Omegahat to store the Java object.
named
a logical value indicating whether this is a named (TRUE) or anonymous (FALSE) reference.

Value

An object of class either AnononymousOmegahatReference or NamedOmegahatReference. This has fields
key
The Omegahat name by which the Java object is known. This is the value of the argument key.
className
the class name of the Java object. This is always empty.

References

http://www.omegahat.org/RSJava

See Also

.Java .JavaConstructor

Examples

Run this code
  omegahatReference("x")
  omegahatReference("x",FALSE)

Run the code above in your browser using DataLab