Java Doc for Namespace.java in  » Testing » KeY » de » uka » ilkd » key » logic » 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 » Testing » KeY » de.uka.ilkd.key.logic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.logic.Namespace

All known Subclasses:   de.uka.ilkd.key.logic.AtPreNamespace,
Namespace
public class Namespace implements java.io.Serializable(Code)
A Namespace keeps track of already used Name s and the objects carrying these names. These objects have to implement the interface Named . It is possible to have nested namespaces in order to represent different visibility scopes. An instance of Namespace can operate in normal and protocoled mode, where the protocoled mode keeps track of all new added names since the last call of Namespace.startProtocol .


Field Summary
protected  NamedlocalSym
     One defined symbol.
protected  intnumLocalSyms
     The number of symbols defined in this namespace.
protected  Namespaceparent
     The fall-back namespace for symbols not present in this Namespace.
protected  HashMapFromNameToNamedprotocol
    
protected  HashMapFromNameToNamedsymbols
     The hashmap that maps a name to a symbols of that name if it is defined in this Namespace.

Constructor Summary
public  Namespace()
     Construct an empty Namespace without a parent namespace.
public  Namespace(HashMapFromNameToNamed protocol)
     Construct an empty Namespace with protocol protocol and without a parent namespace.
public  Namespace(Namespace parent)
     Construct a Namespace that uses parent as a fallback for finding symbols not defined in this one.
public  Namespace(Namespace parent, Named sym)
     Construct a Namespace that uses parent as a fallback for finding symbols not defined in this one.

Method Summary
public  voidadd(Named sym)
     Adds the object sym to this Namespace.
public  voidadd(Namespace source)
    
public  voidadd(ListOfNamed l)
    
public  voidaddSafely(Named sym)
     Adds the object sym to this namespace.
public  ListOfNamedallElements()
    
public  Namespacecopy()
    
public  ListOfNamedelements()
    
public  Namespaceextended(Named sym)
     creates a new Namespace that has this as parent, and contains an entry for sym.
public  Namespaceextended(ListOfNamed ext)
    
public  IteratorOfNamedgetProtocolled()
    
public  Namedlookup(Name name)
    
protected  NamedlookupLocally(Name name)
    
public  Namespaceparent()
     returns the fall-back Namespace of this Namespace, i.e.
public  voidreset()
    
public  voidstartProtocol()
    
public  StringtoString()
    

Field Detail
localSym
protected Named localSym(Code)
One defined symbol. Many Namespaces, e.g. those generated when a quantified formula is parsed, define only one new symbol, and it would be a waste of time and space to create a hashmap for that. So Namespace.symbols is only initialized when there is more than one symbol in this namespace. Otherwise, localSym contains that symbol.



numLocalSyms
protected int numLocalSyms(Code)
The number of symbols defined in this namespace. This is different from symbols.size() because symbols might be null if there is only one symbol in this Namespace.



parent
protected Namespace parent(Code)
The fall-back namespace for symbols not present in this Namespace.



protocol
protected HashMapFromNameToNamed protocol(Code)
Additions can be "recorded" here



symbols
protected HashMapFromNameToNamed symbols(Code)
The hashmap that maps a name to a symbols of that name if it is defined in this Namespace.




Constructor Detail
Namespace
public Namespace()(Code)
Construct an empty Namespace without a parent namespace.



Namespace
public Namespace(HashMapFromNameToNamed protocol)(Code)
Construct an empty Namespace with protocol protocol and without a parent namespace.



Namespace
public Namespace(Namespace parent)(Code)
Construct a Namespace that uses parent as a fallback for finding symbols not defined in this one.



Namespace
public Namespace(Namespace parent, Named sym)(Code)
Construct a Namespace that uses parent as a fallback for finding symbols not defined in this one. Put an entry for sym in this one.




Method Detail
add
public void add(Named sym)(Code)
Adds the object sym to this Namespace. If an object with the same name is already there, it is quietly replaced by sym. Use addSafely() instead if possible.



add
public void add(Namespace source)(Code)



add
public void add(ListOfNamed l)(Code)



addSafely
public void addSafely(Named sym)(Code)
Adds the object sym to this namespace. Throws a runtime exception if an object with the same name is already there.



allElements
public ListOfNamed allElements()(Code)



copy
public Namespace copy()(Code)



elements
public ListOfNamed elements()(Code)
returns list of the elements (not the keys) in this namespace (not about the one of the parent) the list of the named objects



extended
public Namespace extended(Named sym)(Code)
creates a new Namespace that has this as parent, and contains an entry for sym. the new Namespace



extended
public Namespace extended(ListOfNamed ext)(Code)



getProtocolled
public IteratorOfNamed getProtocolled()(Code)
gets symbols added since last startProtocol(); resets the protocol



lookup
public Named lookup(Name name)(Code)
looks if a registered object is declared in this namespace, if negative it asks its parent
Parameters:
  name - a Name representing the name of the symbol to look for Object with name "name" or null if no such an objecthas been found



lookupLocally
protected Named lookupLocally(Name name)(Code)



parent
public Namespace parent()(Code)
returns the fall-back Namespace of this Namespace, i.e. the one where symbols are looked up that are not found in this one.



reset
public void reset()(Code)



startProtocol
public void startProtocol()(Code)
"remember" all additions from now on



toString
public String toString()(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, 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.