com.joanju.proparse
Class Environment
java.lang.Object
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.
Constructor Summary |
Environment()
This class is not quite a singleton. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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()
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.