com.joanju.proparse
Class Environment

java.lang.Object
  extended by com.joanju.proparse.Environment

public class Environment
extends java.lang.Object

Stores parser configuration and handles environment specifics like path. In Proparse-C++, this was enforced as a singleton. In Java, I'm allowing for the possibility that different parser environments might exist in different threads.


Field Summary
static int OPSYS_UNIX
           
static int OPSYS_WINDOWS
           
 
Constructor Summary
Environment()
          This class is not quite a singleton.
 
Method Summary
 java.lang.String configGet(java.lang.String flag)
           
 void configSet(java.lang.String flag, java.lang.String val)
           
static Environment instance()
          Get the default instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPSYS_WINDOWS

public static final int OPSYS_WINDOWS
See Also:
Constant Field Values

OPSYS_UNIX

public static final int OPSYS_UNIX
See Also:
Constant Field Values
Constructor Detail

Environment

public Environment()
This class is not quite a singleton. In Proparse-C++, this was enforced as a singleton. In Java, I'm allowing for the possibility that different parser environments might exist in different threads.

See Also:
instance()
Method Detail

configGet

public java.lang.String configGet(java.lang.String flag)

configSet

public void configSet(java.lang.String flag,
                      java.lang.String val)

instance

public static Environment instance()
Get the default instance. In Proparse-C++, this class was enforced as a singleton. In Java, I'm allowing for the possibility that different parser environments might exist in different threads.



Copyright © 2008 Joanju Software. All Rights Reserved.