Java Doc for Environment.java in  » Scripting » Kawa » gnu » mapping » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.mapping 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.mapping.PropertySet
      gnu.mapping.Environment

All known Subclasses:   gnu.expr.BuiltinEnvironment,  gnu.mapping.SimpleEnvironment,
Environment
abstract public class Environment extends PropertySet (Code)
A mapping from EnvironmentKey to Locations. An EnvironmentKey is either a Symbol or a (Symbol, property)-pair.


Field Summary
final static  intCAN_DEFINE
    
final static  intCAN_IMPLICITLY_DEFINE
     If 'put' can implicitly define an unbound location.
final static  intCAN_REDEFINE
    
final static  intDIRECT_INHERITED_ON_SET
     If this flag is on, set DIRECT_ON_SET for inherited locations.
final public static  intINDIRECT_DEFINES
     Newly defined locations are created in inherited parent environment.
final static  intTHREAD_SAFE
     May be shared by multiple threads.
final static  HashtableenvTable
    
 intflags
    
static  Environmentglobal
    


Method Summary
final public  voidaddLocation(NamedLocation loc)
    
abstract public  NamedLocationaddLocation(Symbol name, Object prop, Location loc)
    
final public  voidaddLocation(EnvironmentKey key, Location loc)
    
final public  booleancontainsKey(Object key)
    
public static  Environmentcurrent()
    
public  NamespacedefaultNamespace()
    
abstract public  voiddefine(Symbol key, Object property, Object newValue)
    
abstract public  LocationEnumerationenumerateAllLocations()
     Does enumerate inherited Locations.
abstract public  LocationEnumerationenumerateLocations()
     Does not enumerate inherited Locations.
public  Objectget(Symbol key, Object property, Object defaultValue)
    
final public  Objectget(EnvironmentKey key, Object defaultValue)
    
final public  Objectget(String key, Object defaultValue)
    
public  Objectget(Symbol sym)
    
final public  Objectget(Object key)
     Get the value bound to the given name.
public  booleangetCanDefine()
     True if new bindings (non-unbound Locations) can be added.
public  booleangetCanRedefine()
     True if bindings can be removed or replaced by other kinds of Location.
final public  ObjectgetChecked(String name)
     Get the value bound to the given name.
public static  EnvironmentgetCurrent()
    
public  intgetFlags()
    
final public  ObjectgetFunction(Symbol key, Object defaultValue)
    
final public  ObjectgetFunction(Symbol sym)
    
public static  EnvironmentgetGlobal()
    
public static  EnvironmentgetInstance(String name)
    
final public  LocationgetLocation(Symbol key, Object property)
     Return a location bound to (key, property). Create new unbound Location if no such Location exists.
final public  LocationgetLocation(Symbol key)
     Return a location bound to key (and null property). Create new unbound Location if no such Location exists.
abstract public  NamedLocationgetLocation(Symbol key, Object property, int hash, boolean create)
    
final public  NamedLocationgetLocation(Symbol name, Object property, boolean create)
    
final public  LocationgetLocation(Object key, boolean create)
    
public  SymbolgetSymbol(String name)
    
abstract protected  booleanhasMoreElements(LocationEnumeration it)
    
public  booleanisBound(Symbol key, Object property)
    
final public  booleanisBound(Symbol key)
    
final public  booleanisLocked()
     True if this environment is locked - bindings cannot be added or removed.
final public  Locationlookup(Symbol key, Object property)
     Return a location bound to (key, property). Return null if no such Location exists.
abstract public  NamedLocationlookup(Symbol name, Object property, int hash)
    
final public  Locationlookup(Symbol key)
    
public static  SimpleEnvironmentmake()
    
public static  SimpleEnvironmentmake(String name)
    
public static  InheritingEnvironmentmake(String name, Environment parent)
    
public  voidput(Symbol key, Object property, Object newValue)
    
final public  voidput(Symbol key, Object newValue)
    
final public  Objectput(Object key, Object newValue)
    
final public  Objectput(String key, Object value)
    
final public  voidputFunction(Symbol key, Object newValue)
    
public  Objectremove(Symbol key, Object property, int hash)
     Remove Location from this Environment and undefine it.
final public  Objectremove(EnvironmentKey key)
     Remove and undefine binding.
final public  Objectremove(Symbol symbol, Object property)
    
final public  voidremove(Symbol sym)
    
final public  Objectremove(Object key)
    
final public  voidremoveFunction(Symbol sym)
    
public  voidsetCanDefine(boolean canDefine)
    
public  voidsetCanRedefine(boolean canRedefine)
    
public static  voidsetCurrent(Environment env)
    
public  voidsetFlag(boolean setting, int flag)
    
public static  voidsetGlobal(Environment env)
    
final public  voidsetIndirectDefines()
    
public  voidsetLocked()
    
public  StringtoString()
    
public  StringtoStringVerbose()
     Overridden in sub-classes - useful for more verbose debug output.
public  Locationunlink(Symbol key, Object property, int hash)
     Remove Location from this Environment.
public static  Environmentuser()
    

Field Detail
CAN_DEFINE
final static int CAN_DEFINE(Code)



CAN_IMPLICITLY_DEFINE
final static int CAN_IMPLICITLY_DEFINE(Code)
If 'put' can implicitly define an unbound location.



CAN_REDEFINE
final static int CAN_REDEFINE(Code)



DIRECT_INHERITED_ON_SET
final static int DIRECT_INHERITED_ON_SET(Code)
If this flag is on, set DIRECT_ON_SET for inherited locations.



INDIRECT_DEFINES
final public static int INDIRECT_DEFINES(Code)
Newly defined locations are created in inherited parent environment.



THREAD_SAFE
final static int THREAD_SAFE(Code)
May be shared by multiple threads.



envTable
final static Hashtable envTable(Code)



flags
int flags(Code)



global
static Environment global(Code)





Method Detail
addLocation
final public void addLocation(NamedLocation loc)(Code)



addLocation
abstract public NamedLocation addLocation(Symbol name, Object prop, Location loc)(Code)



addLocation
final public void addLocation(EnvironmentKey key, Location loc)(Code)



containsKey
final public boolean containsKey(Object key)(Code)



current
public static Environment current()(Code)



defaultNamespace
public Namespace defaultNamespace()(Code)



define
abstract public void define(Symbol key, Object property, Object newValue)(Code)



enumerateAllLocations
abstract public LocationEnumeration enumerateAllLocations()(Code)
Does enumerate inherited Locations.



enumerateLocations
abstract public LocationEnumeration enumerateLocations()(Code)
Does not enumerate inherited Locations.



get
public Object get(Symbol key, Object property, Object defaultValue)(Code)



get
final public Object get(EnvironmentKey key, Object defaultValue)(Code)



get
final public Object get(String key, Object defaultValue)(Code)



get
public Object get(Symbol sym)(Code)



get
final public Object get(Object key)(Code)
Get the value bound to the given name. Returns null if the name has no binding (for compatibility with Java2 Collections framework).
See Also:   Environment.getChecked(String)



getCanDefine
public boolean getCanDefine()(Code)
True if new bindings (non-unbound Locations) can be added.



getCanRedefine
public boolean getCanRedefine()(Code)
True if bindings can be removed or replaced by other kinds of Location.



getChecked
final public Object getChecked(String name)(Code)
Get the value bound to the given name.
exception:
  gnu.mapping.UnboundLocationException - the name has no binding
See Also:   Environment.get(Object)



getCurrent
public static Environment getCurrent()(Code)



getFlags
public int getFlags()(Code)



getFunction
final public Object getFunction(Symbol key, Object defaultValue)(Code)



getFunction
final public Object getFunction(Symbol sym)(Code)



getGlobal
public static Environment getGlobal()(Code)



getInstance
public static Environment getInstance(String name)(Code)



getLocation
final public Location getLocation(Symbol key, Object property)(Code)
Return a location bound to (key, property). Create new unbound Location if no such Location exists.



getLocation
final public Location getLocation(Symbol key)(Code)
Return a location bound to key (and null property). Create new unbound Location if no such Location exists.



getLocation
abstract public NamedLocation getLocation(Symbol key, Object property, int hash, boolean create)(Code)



getLocation
final public NamedLocation getLocation(Symbol name, Object property, boolean create)(Code)



getLocation
final public Location getLocation(Object key, boolean create)(Code)



getSymbol
public Symbol getSymbol(String name)(Code)



hasMoreElements
abstract protected boolean hasMoreElements(LocationEnumeration it)(Code)



isBound
public boolean isBound(Symbol key, Object property)(Code)



isBound
final public boolean isBound(Symbol key)(Code)



isLocked
final public boolean isLocked()(Code)
True if this environment is locked - bindings cannot be added or removed.



lookup
final public Location lookup(Symbol key, Object property)(Code)
Return a location bound to (key, property). Return null if no such Location exists.



lookup
abstract public NamedLocation lookup(Symbol name, Object property, int hash)(Code)



lookup
final public Location lookup(Symbol key)(Code)



make
public static SimpleEnvironment make()(Code)



make
public static SimpleEnvironment make(String name)(Code)



make
public static InheritingEnvironment make(String name, Environment parent)(Code)



put
public void put(Symbol key, Object property, Object newValue)(Code)



put
final public void put(Symbol key, Object newValue)(Code)



put
final public Object put(Object key, Object newValue)(Code)



put
final public Object put(String key, Object value)(Code)



putFunction
final public void putFunction(Symbol key, Object newValue)(Code)



remove
public Object remove(Symbol key, Object property, int hash)(Code)
Remove Location from this Environment and undefine it.



remove
final public Object remove(EnvironmentKey key)(Code)
Remove and undefine binding. Old value



remove
final public Object remove(Symbol symbol, Object property)(Code)



remove
final public void remove(Symbol sym)(Code)



remove
final public Object remove(Object key)(Code)



removeFunction
final public void removeFunction(Symbol sym)(Code)



setCanDefine
public void setCanDefine(boolean canDefine)(Code)



setCanRedefine
public void setCanRedefine(boolean canRedefine)(Code)



setCurrent
public static void setCurrent(Environment env)(Code)



setFlag
public void setFlag(boolean setting, int flag)(Code)



setGlobal
public static void setGlobal(Environment env)(Code)



setIndirectDefines
final public void setIndirectDefines()(Code)



setLocked
public void setLocked()(Code)



toString
public String toString()(Code)



toStringVerbose
public String toStringVerbose()(Code)
Overridden in sub-classes - useful for more verbose debug output.



unlink
public Location unlink(Symbol key, Object property, int hash)(Code)
Remove Location from this Environment. Does not explicitly undefine the location itself.



user
public static Environment user()(Code)



Methods inherited from gnu.mapping.PropertySet
public String getName()(Code)(Java Doc)
public Object getProperty(Object key, Object defaultValue)(Code)(Java Doc)
public Object getSymbol()(Code)(Java Doc)
public Object removeProperty(Object key)(Code)(Java Doc)
final public void setName(String name)(Code)(Java Doc)
public synchronized void setProperty(Object key, Object value)(Code)(Java Doc)
public static Object[] setProperty(Object[] properties, Object key, Object value)(Code)(Java Doc)
final public void setSymbol(Object name)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.