openjava.mop
Class OJSystem

java.lang.Object
  |
  +--openjava.mop.OJSystem

public class OJSystem
extends Object

OJSystem is the system environment: the analog of System in an OpenJava system.

Since:
%SOFTWARE% 1.0
Version:
1.0
Author:
Michiaki Tatsubori
See Also:
System

Field Summary
private static Vector additionalClasses
           
static OJClass BOOLEAN
          class object for primitive type boolean
static OJClass BYTE
          class object for primitive type byte
static OJClass CHAR
          class object for primitive type char
static OJClass DOUBLE
          class object for primitive type double
static GlobalEnvironment env
          The global system environment for all public classes.
static OJClass FLOAT
          class object for primitive type float
static OJClass INT
          class object for primitive type int
private static JavaCompiler javac
           
static OJClass LONG
          class object for primitive type long
private static Hashtable mapClassNameToMetaClass
          Maps the name (String) of a class to its metaclass (Class).
static String NextLineChar
          The system dependent newline string.
static OJClass NULLTYPE
          class object for type of null literal
static String NULLTYPE_NAME
          The type name for null.
static OJClass OBJECT
          class object for java.lang.Object
static Object orderingLock
          internal use only
static OJClass SHORT
          class object for primitive type short
static OJClass STRING
          class object for java.lang.String
static Hashtable underConstruction
          internal use only
static OJClass VOID
          class object for primitive type void
static OJClass waited
          internal use only
static Vector waitingPool
          internal use only
 
Constructor Summary
OJSystem()
           
 
Method Summary
static OJClass[] addedClasses()
          internal use only
static void addNewClass(OJClass clazz)
          Adds an new public class to be generated.
static JavaCompiler getJavaCompiler()
          internal use only
static Class getMetabind(String clazz)
          internal use only
private static String getNextLineChar()
           
private static OJClass getNullClass()
           
static void metabind(String clazz, String metaclazz)
          internal use only
private static Class searchMetaclassInTable(String clazz)
           
static void setJavaCompiler(JavaCompiler c)
          internal use only
private static String toPackage(String classname)
           
private static String toPackageSuffix(String classname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

public static final GlobalEnvironment env
The global system environment for all public classes.


mapClassNameToMetaClass

private static Hashtable mapClassNameToMetaClass
Maps the name (String) of a class to its metaclass (Class).


BOOLEAN

public static OJClass BOOLEAN
class object for primitive type boolean


BYTE

public static OJClass BYTE
class object for primitive type byte


CHAR

public static OJClass CHAR
class object for primitive type char


SHORT

public static OJClass SHORT
class object for primitive type short


INT

public static OJClass INT
class object for primitive type int


LONG

public static OJClass LONG
class object for primitive type long


FLOAT

public static OJClass FLOAT
class object for primitive type float


DOUBLE

public static OJClass DOUBLE
class object for primitive type double


VOID

public static OJClass VOID
class object for primitive type void


STRING

public static OJClass STRING
class object for java.lang.String


OBJECT

public static OJClass OBJECT
class object for java.lang.Object


NULLTYPE

public static OJClass NULLTYPE
class object for type of null literal


NULLTYPE_NAME

public static final String NULLTYPE_NAME
The type name for null.

See Also:
Constant Field Values

NextLineChar

public static final String NextLineChar
The system dependent newline string.


additionalClasses

private static final Vector additionalClasses

javac

private static JavaCompiler javac

orderingLock

public static Object orderingLock
internal use only


waited

public static OJClass waited
internal use only


underConstruction

public static final Hashtable underConstruction
internal use only


waitingPool

public static final Vector waitingPool
internal use only

Constructor Detail

OJSystem

public OJSystem()
Method Detail

getNullClass

private static final OJClass getNullClass()

getNextLineChar

private static String getNextLineChar()

addNewClass

public static void addNewClass(OJClass clazz)
                        throws MOPException
Adds an new public class to be generated.

MOPException

getJavaCompiler

public static JavaCompiler getJavaCompiler()
internal use only


setJavaCompiler

public static void setJavaCompiler(JavaCompiler c)
internal use only


addedClasses

public static OJClass[] addedClasses()
internal use only


metabind

public static void metabind(String clazz,
                            String metaclazz)
                     throws ParseException
internal use only

ParseException

getMetabind

public static Class getMetabind(String clazz)
internal use only


searchMetaclassInTable

private static Class searchMetaclassInTable(String clazz)

toPackageSuffix

private static String toPackageSuffix(String classname)

toPackage

private static String toPackage(String classname)

SourceForge.net_Logo