home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / sun-java / stubs / include / interpreter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  95 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. #ifndef _INTERPRETER_H_
  19. #define _INTERPRETER_H_
  20.  
  21. #include "prtypes.h"
  22.  
  23. PR_BEGIN_EXTERN_C
  24.  
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #include <string.h>
  28.  
  29. #include "bool.h"
  30. #include "jni.h"
  31.  
  32. typedef struct execenv ExecEnv;
  33.  
  34. typedef void JavaStack;
  35.  
  36. typedef void JavaFrame; 
  37.  
  38. struct Hjava_lang_ClassLoader;
  39.  
  40. JRI_PUBLIC_API(JHandle *)
  41. ArrayAlloc(int32_t, int32_t);
  42.  
  43. JRI_PUBLIC_API(JavaFrame *)
  44. CompiledFramePrev(JavaFrame *, JavaFrame *);
  45.  
  46. JRI_PUBLIC_API(JavaStack *)
  47. CreateNewJavaStack(ExecEnv *, JavaStack *);
  48.  
  49. JRI_PUBLIC_API(bool_t)
  50. ExecuteJava(unsigned char *, ExecEnv *);
  51.  
  52. JRI_PUBLIC_API(ClassClass *)
  53. FindClassFromClass(struct execenv *, char *, bool_t, ClassClass *);
  54.  
  55. JRI_PUBLIC_API(ClassClass *)
  56. FindLoadedClass(char *, struct Hjava_lang_ClassLoader *);
  57.  
  58. JRI_PUBLIC_API(void)
  59. PrintToConsole(const char *);
  60.  
  61. JRI_PUBLIC_API(bool_t)
  62. VerifyClassAccess(ClassClass *, ClassClass *, bool_t);
  63.  
  64. JRI_PUBLIC_API(bool_t)
  65. VerifyFieldAccess(ClassClass *, ClassClass *, int, bool_t);
  66.  
  67. JRI_PUBLIC_API(long)
  68. do_execute_java_method(ExecEnv *, void *, char *, char *,
  69.                        struct methodblock *, bool_t, ...);
  70.  
  71. JRI_PUBLIC_API(long)
  72. do_execute_java_method_vararg(ExecEnv *, void *, char *, char *,
  73.                               struct methodblock *, bool_t, va_list,
  74.                               long *, bool_t);
  75.  
  76. JRI_PUBLIC_API(HObject *)
  77. execute_java_constructor_vararg(struct execenv *, char *, ClassClass *,
  78.                                 char *, va_list);
  79.  
  80. JRI_PUBLIC_API(HObject *)
  81. execute_java_constructor(ExecEnv *, char *, ClassClass *, char *, ...);
  82.  
  83. JRI_PUBLIC_API(bool_t)
  84. is_subclass_of(ClassClass *, ClassClass *, ExecEnv *);
  85.  
  86. JRI_PUBLIC_API(HObject*)
  87. newobject(ClassClass *, unsigned char *, struct execenv *);
  88.  
  89. JRI_PUBLIC_API(int32_t)
  90. sizearray(int32_t, int32_t);
  91.  
  92. PR_END_EXTERN_C
  93.  
  94. #endif /* ! _INTERPRETER_H_ */
  95.