Java Doc for Namespace.java in  » Scripting » jacl » tcl » lang » 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 » jacl » tcl.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   tcl.lang.Namespace

Namespace
public class Namespace (Code)

Inner Class :public static interface DeleteProc
Inner Class :static class ResolvedNsName
Inner Class :static class GetNamespaceForQualNameResult

Field Summary
final public static  intCREATE_NS_IF_UNKNOWN
    
final public static  intFIND_ONLY_NS
    
final static  intNS_DEAD
    
final static  intNS_DYING
    
public  intactivationCount
    
public  HashMapchildTable
    
public  HashMapcmdTable
    
public  DeleteProcdeleteProc
    
public  String[]exportArray
    
public  intflags
    
public  StringfullName
    
public  Interpinterp
    
public  intmaxExportPatterns
    
public  Stringname
    
public  longnsId
    
public  intnumExportPatterns
    
public  Namespaceparent
    
public  intrefCount
    
public  Resolverresolver
    
public  HashMapvarTable
    


Method Summary
static  ObjectFirstHashEntry(HashMap table)
     ---------------------------------------------------------------------- Tcl_FirstHashEntry -> FirstHashEntry Return the first Object value contained in the given table. This method is used only when taking apart a table where entries in the table could be removed elsewhere.
static  voidappendExportList(Interp interp, Namespace namespace, TclObject obj)
    
public static  NamespacecreateNamespace(Interp interp, String name, DeleteProc deleteProc)
    
static  voiddeleteImportedCmd(ImportedCmdData data)
    
public static  voiddeleteNamespace(Namespace namespace)
    
public static  voidexportList(Interp interp, Namespace namespace, String pattern, boolean resetListFirst)
    
public static  WrappedCommandfindCommand(Interp interp, String name, Namespace contextNs, int flags)
    
public static  NamespacefindNamespace(Interp interp, String name, Namespace contextNs, int flags)
    
public static  VarfindNamespaceVar(Interp interp, String name, Namespace contextNs, int flags)
    
static  voidforgetImport(Interp interp, Namespace namespace, String pattern)
    
static  voidfree(Namespace ns)
    
public static  NamespacegetCurrentNamespace(Interp interp)
    
public static  NamespacegetGlobalNamespace(Interp interp)
    
static  voidgetNamespaceForQualName(Interp interp, String qualName, Namespace cxtNs, int flags, GetNamespaceForQualNameResult gnfqnr)
    
static  ResolvergetNamespaceResolver(Namespace namespace)
     ---------------------------------------------------------------------- Tcl_GetNamespaceResolvers -> getNamespaceResolver Returns the current command/variable resolution object for a namespace.
public static  WrappedCommandgetOriginalCommand(WrappedCommand command)
    
public static  voidimportList(Interp interp, Namespace namespace, String pattern, boolean allowOverwrite)
    
static  voidinvokeImportedCmd(Interp interp, ImportedCmdData data, TclObject[] objv)
    
public static  voidpopCallFrame(Interp interp)
    
public static  voidpushCallFrame(Interp interp, CallFrame frame, Namespace namespace, boolean isProcCallFrame)
    
static  voidresetShadowedCmdRefs(Interp interp, WrappedCommand newCmd)
    
public static  voidsetNamespaceResolver(Namespace namespace, Resolver resolver)
     ---------------------------------------------------------------------- Tcl_SetNamespaceResolvers -> setNamespaceResolver Sets the command/variable resolution object for a namespace, thereby changing the way that command/variable names are interpreted.
static  voidteardownNamespace(Namespace ns)
    
public  StringtoString()
    

Field Detail
CREATE_NS_IF_UNKNOWN
final public static int CREATE_NS_IF_UNKNOWN(Code)



FIND_ONLY_NS
final public static int FIND_ONLY_NS(Code)



NS_DEAD
final static int NS_DEAD(Code)



NS_DYING
final static int NS_DYING(Code)



activationCount
public int activationCount(Code)



childTable
public HashMap childTable(Code)



cmdTable
public HashMap cmdTable(Code)



deleteProc
public DeleteProc deleteProc(Code)



exportArray
public String[] exportArray(Code)



flags
public int flags(Code)



fullName
public String fullName(Code)



interp
public Interp interp(Code)



maxExportPatterns
public int maxExportPatterns(Code)



name
public String name(Code)



nsId
public long nsId(Code)



numExportPatterns
public int numExportPatterns(Code)



parent
public Namespace parent(Code)



refCount
public int refCount(Code)



resolver
public Resolver resolver(Code)



varTable
public HashMap varTable(Code)





Method Detail
FirstHashEntry
static Object FirstHashEntry(HashMap table)(Code)
---------------------------------------------------------------------- Tcl_FirstHashEntry -> FirstHashEntry Return the first Object value contained in the given table. This method is used only when taking apart a table where entries in the table could be removed elsewhere. An Iterator is no longer valid once entries have been removed so it is not possible to take a table apart safely with a single iterator. This method returns null when there are no more elements in the table, so it should not be used with a table that contains null values. This method is not efficient, but it is required when dealing with a Java Iterator when the table being iterated could have elements added or deleted. ----------------------------------------------------------------------



appendExportList
static void appendExportList(Interp interp, Namespace namespace, TclObject obj) throws TclException(Code)



createNamespace
public static Namespace createNamespace(Interp interp, String name, DeleteProc deleteProc)(Code)



deleteImportedCmd
static void deleteImportedCmd(ImportedCmdData data)(Code)



deleteNamespace
public static void deleteNamespace(Namespace namespace)(Code)



exportList
public static void exportList(Interp interp, Namespace namespace, String pattern, boolean resetListFirst) throws TclException(Code)



findCommand
public static WrappedCommand findCommand(Interp interp, String name, Namespace contextNs, int flags) throws TclException(Code)



findNamespace
public static Namespace findNamespace(Interp interp, String name, Namespace contextNs, int flags)(Code)



findNamespaceVar
public static Var findNamespaceVar(Interp interp, String name, Namespace contextNs, int flags) throws TclException(Code)



forgetImport
static void forgetImport(Interp interp, Namespace namespace, String pattern) throws TclException(Code)



free
static void free(Namespace ns)(Code)



getCurrentNamespace
public static Namespace getCurrentNamespace(Interp interp)(Code)



getGlobalNamespace
public static Namespace getGlobalNamespace(Interp interp)(Code)



getNamespaceForQualName
static void getNamespaceForQualName(Interp interp, String qualName, Namespace cxtNs, int flags, GetNamespaceForQualNameResult gnfqnr)(Code)



getNamespaceResolver
static Resolver getNamespaceResolver(Namespace namespace)(Code)
---------------------------------------------------------------------- Tcl_GetNamespaceResolvers -> getNamespaceResolver Returns the current command/variable resolution object for a namespace. By default, these objects are null. New objects can be installed by calling setNamespaceResolver, to provide new name resolution rules. Results: Returns the esolver object assigned to this namespace. Returns null otherwise. Side effects: None. ----------------------------------------------------------------------



getOriginalCommand
public static WrappedCommand getOriginalCommand(WrappedCommand command)(Code)



importList
public static void importList(Interp interp, Namespace namespace, String pattern, boolean allowOverwrite) throws TclException(Code)



invokeImportedCmd
static void invokeImportedCmd(Interp interp, ImportedCmdData data, TclObject[] objv) throws TclException(Code)



popCallFrame
public static void popCallFrame(Interp interp)(Code)



pushCallFrame
public static void pushCallFrame(Interp interp, CallFrame frame, Namespace namespace, boolean isProcCallFrame)(Code)



resetShadowedCmdRefs
static void resetShadowedCmdRefs(Interp interp, WrappedCommand newCmd)(Code)



setNamespaceResolver
public static void setNamespaceResolver(Namespace namespace, Resolver resolver)(Code)
---------------------------------------------------------------------- Tcl_SetNamespaceResolvers -> setNamespaceResolver Sets the command/variable resolution object for a namespace, thereby changing the way that command/variable names are interpreted. This allows extension writers to support different name resolution schemes, such as those for object-oriented packages. Command resolution is handled by the following method: resolveCmd (Interp interp, String name, Namespace context, int flags) throws TclException; Whenever a command is executed or Namespace.findCommand is invoked within the namespace, this method is called to resolve the command name. If this method is able to resolve the name, it should return the corresponding WrappedCommand. Otherwise, the procedure can return null, and the command will be treated under the usual name resolution rules. Or, it can throw a TclException, and the command will be considered invalid. Variable resolution is handled by the following method: resolveVar (Interp interp, String name, Namespace context, int flags) throws TclException; If this method is able to resolve the name, it should return the variable as Var object. The method may also return null, and the variable will be treated under the usual name resolution rules. Or, it can throw a TclException, and the variable will be considered invalid. Results: See above. Side effects: None. ----------------------------------------------------------------------



teardownNamespace
static void teardownNamespace(Namespace ns)(Code)



toString
public String toString()(Code)



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.