All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class net.pharmatrak.babelj.test.BabeljJavaClient

java.lang.Object
   |
   +----net.pharmatrak.babelj.test.BabeljJavaClient

public class BabeljJavaClient
extends Object
Babelj is a language server library for Java. Copyright (C) 1999 Pharmatrak

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

OK, this class seems pointless - why write a Babelj client in Java? Well it's for testing so calm down. It's also an illustration of how to write a client.

Unimplemented commands: none!

Author:
Timothy W Macinta (twm@alum.mit.edu)

Constructor Index

 o BabeljJavaClient()

Method Index

 o connect()
 o connect(int)
 o disconnect()
 o freeRef(Object)
 o getField(Object, String)
 o getStaticField(String, String)
 o lastWasException()
 o lastWasNull()
 o methodCall(Object, String, Object[])
 o methodCall(Object, String, Object[], Object[])
 o newInstanceCall(String, Object[])
 o newInstanceCall(String, Object[], Object[])
 o staticMethodCall(String, String, Object[])
 o staticMethodCall(String, String, Object[], Object[])
 o writeObject(Object, Object)

Constructors

 o BabeljJavaClient
 public BabeljJavaClient()

Methods

 o connect
 public void connect() throws IOException
 o connect
 public void connect(int port) throws IOException
 o disconnect
 public void disconnect() throws IOException
 o methodCall
 public Object methodCall(Object obj_ref,
                          String method_name,
                          Object args[]) throws IOException
 o methodCall
 public Object methodCall(Object obj_ref,
                          String method_name,
                          Object args[],
                          Object type_template[]) throws IOException
 o staticMethodCall
 public Object staticMethodCall(String class_name,
                                String method_name,
                                Object args[]) throws IOException
 o staticMethodCall
 public Object staticMethodCall(String class_name,
                                String method_name,
                                Object args[],
                                Object type_template[]) throws IOException
 o newInstanceCall
 public Object newInstanceCall(String class_name,
                               Object args[]) throws IOException
 o newInstanceCall
 public Object newInstanceCall(String class_name,
                               Object args[],
                               Object type_template[]) throws IOException
 o getStaticField
 public Object getStaticField(String class_name,
                              String field_name) throws IOException
 o getField
 public Object getField(Object obj_ref,
                        String field_name) throws IOException
 o freeRef
 public Object freeRef(Object obj_ref) throws IOException
 o lastWasException
 public boolean lastWasException()
 o lastWasNull
 public boolean lastWasNull()
 o writeObject
 public void writeObject(Object obj,
                         Object type_template) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index