org.omegahat.Interfaces.NativeInterface
Interface ForeignReferenceInt

All Known Implementing Classes:
ForeignReference

public interface ForeignReferenceInt

Interface defining the concept of an R or S object that is being exported to Java via the embedded JVM mechanism, and the methods that this should support. These methods contain information for identifying the object (i.e. the name and the database) in that remote system (R or S) when the JVM makes the call back to it; identifying the Java class to use for representing this object in the local (Java) environment; the names of one more interfaces or classes to implement when dynamically generating a new proxy class to represent this object locally.


Method Summary
 java.lang.Object eval(org.omegahat.Environment.Parser.Parse.List args, java.lang.String methodName, java.lang.String returnClass, java.lang.String[] signature)
          Callback to the foreign system with all the details of the Java method being called.
 java.lang.String getReferenceName()
           
 

Method Detail

getReferenceName

public java.lang.String getReferenceName()

eval

public java.lang.Object eval(org.omegahat.Environment.Parser.Parse.List args,
                             java.lang.String methodName,
                             java.lang.String returnClass,
                             java.lang.String[] signature)
                      throws java.lang.Exception
Callback to the foreign system with all the details of the Java method being called. This is all the caller need supply. When we pass control over to the foreign system, we may want to add the class identity of the caller and perhaps an anonymous reference to the `this' whose Java method is being called. This is not entirely necessary as the foreign system can take care of that, but it may be useful.