Java Doc for ExternalNameSpace.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » bsh » 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 » Swing Library » jEdit » org.gjt.sp.jedit.bsh 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.bsh.NameSpace
      org.gjt.sp.jedit.bsh.ExternalNameSpace

ExternalNameSpace
public class ExternalNameSpace extends NameSpace (Code)
A namespace which maintains an external map of values held in variables in its scope. This mechanism provides a standard collections based interface to the namespace as well as a convenient way to export and view values of the namespace without the ordinary BeanShell wrappers.

Variables are maintained internally in the normal fashion to support meta-information (such as variable type and visibility modifiers), but exported and imported in a synchronized way. Variables are exported each time they are written by BeanShell. Imported variables from the map appear in the BeanShell namespace as untyped variables with no modifiers and shadow any previously defined variables in the scope.

Note: this class is inherentely dependent on Java 1.2, however it is not used directly by the core as other than type NameSpace, so no dependency is introduced.




Constructor Summary
public  ExternalNameSpace()
    
public  ExternalNameSpace(NameSpace parent, String name, Map externalMap)
    

Method Summary
public  voidclear()
     Clear all variables, methods, and imports from this namespace and clear all values from the external map (via Map clear()).
protected  voidgetAllNamesAux(Vector vec)
    
public  Variable[]getDeclaredVariables()
    
public  MapgetMap()
     Get the map view of this namespace.
public  BshMethodgetMethod(String name, Class[] sig, boolean declaredOnly)
    
protected  VariablegetVariableImpl(String name, boolean recurse)
    
public  String[]getVariableNames()
    
protected  voidputExternalMap(String name, Object value)
     Place an unwrapped value in the external map.
public  voidsetMap(Map map)
     Set the external Map which to which this namespace synchronizes. The previous external map is detached from this namespace.
public  voidsetMethod(String name, BshMethod method)
    
public  voidsetTypedVariable(String name, Class type, Object value, Modifiers modifiers)
    
 voidsetVariable(String name, Object value, boolean strictJava, boolean recurse)
    
public  voidunsetVariable(String name)
    


Constructor Detail
ExternalNameSpace
public ExternalNameSpace()(Code)



ExternalNameSpace
public ExternalNameSpace(NameSpace parent, String name, Map externalMap)(Code)




Method Detail
clear
public void clear()(Code)
Clear all variables, methods, and imports from this namespace and clear all values from the external map (via Map clear()).



getAllNamesAux
protected void getAllNamesAux(Vector vec)(Code)



getDeclaredVariables
public Variable[] getDeclaredVariables()(Code)



getMap
public Map getMap()(Code)
Get the map view of this namespace.



getMethod
public BshMethod getMethod(String name, Class[] sig, boolean declaredOnly) throws UtilEvalError(Code)



getVariableImpl
protected Variable getVariableImpl(String name, boolean recurse) throws UtilEvalError(Code)



getVariableNames
public String[] getVariableNames()(Code)



putExternalMap
protected void putExternalMap(String name, Object value)(Code)
Place an unwrapped value in the external map. BeanShell primitive types are represented by their object wrappers, so it is not possible to differentiate between wrapper types and primitive types via the external Map.



setMap
public void setMap(Map map)(Code)
Set the external Map which to which this namespace synchronizes. The previous external map is detached from this namespace. Previous map values are retained in the external map, but are removed from the BeanShell namespace.



setMethod
public void setMethod(String name, BshMethod method) throws UtilEvalError(Code)



setTypedVariable
public void setTypedVariable(String name, Class type, Object value, Modifiers modifiers) throws UtilEvalError(Code)



setVariable
void setVariable(String name, Object value, boolean strictJava, boolean recurse) throws UtilEvalError(Code)



unsetVariable
public void unsetVariable(String name)(Code)



Fields inherited from org.gjt.sp.jedit.bsh.NameSpace
final public static NameSpace JAVACODE(Code)(Java Doc)
SimpleNode callerInfoNode(Code)(Java Doc)
Object classInstance(Code)(Java Doc)
Class classStatic(Code)(Java Doc)
protected Hashtable importedClasses(Code)(Java Doc)
boolean isClass(Code)(Java Doc)
boolean isMethod(Code)(Java Doc)
Vector nameSourceListeners(Code)(Java Doc)

Methods inherited from org.gjt.sp.jedit.bsh.NameSpace
public void addCommandPath(String path, Class clas)(Code)(Java Doc)
public void addNameSourceListener(NameSource.Listener listener)(Code)(Java Doc)
void cacheClass(String name, Class c)(Code)(Java Doc)
public void classLoaderChanged()(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public void doSuperImport() throws UtilEvalError(Code)(Java Doc)
public Object get(String name, Interpreter interpreter) throws UtilEvalError(Code)(Java Doc)
public String[] getAllNames()(Code)(Java Doc)
protected void getAllNamesAux(Vector vec)(Code)(Java Doc)
public Class getClass(String name) throws UtilEvalError(Code)(Java Doc)
Object getClassInstance() throws UtilEvalError(Code)(Java Doc)
public BshClassManager getClassManager()(Code)(Java Doc)
public Object getCommand(String name, Class[] argTypes, Interpreter interpreter) throws UtilEvalError(Code)(Java Doc)
public InputStream getCommand(String name)(Code)(Java Doc)
public Variable[] getDeclaredVariables()(Code)(Java Doc)
public This getGlobal(Interpreter declaringInterpreter)(Code)(Java Doc)
protected BshMethod getImportedMethod(String name, Class[] sig) throws UtilEvalError(Code)(Java Doc)
protected Variable getImportedVar(String name) throws UtilEvalError(Code)(Java Doc)
public int getInvocationLine()(Code)(Java Doc)
public String getInvocationText()(Code)(Java Doc)
public BshMethod getMethod(String name, Class[] sig) throws UtilEvalError(Code)(Java Doc)
public BshMethod getMethod(String name, Class[] sig, boolean declaredOnly) throws UtilEvalError(Code)(Java Doc)
public String[] getMethodNames()(Code)(Java Doc)
public BshMethod[] getMethods()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
Name getNameResolver(String ambigname)(Code)(Java Doc)
SimpleNode getNode()(Code)(Java Doc)
String getPackage()(Code)(Java Doc)
public NameSpace getParent()(Code)(Java Doc)
public This getSuper(Interpreter declaringInterpreter)(Code)(Java Doc)
This getThis(Interpreter declaringInterpreter)(Code)(Java Doc)
public Object getVariable(String name) throws UtilEvalError(Code)(Java Doc)
public Object getVariable(String name, boolean recurse) throws UtilEvalError(Code)(Java Doc)
protected Variable getVariableImpl(String name, boolean recurse) throws UtilEvalError(Code)(Java Doc)
public String[] getVariableNames()(Code)(Java Doc)
public static Class identifierToClass(ClassIdentifier ci)(Code)(Java Doc)
public void importClass(String name)(Code)(Java Doc)
public void importCommands(String name)(Code)(Java Doc)
public void importObject(Object obj)(Code)(Java Doc)
public void importPackage(String name)(Code)(Java Doc)
public void importStatic(Class clas)(Code)(Java Doc)
public Object invokeMethod(String methodName, Object[] args, Interpreter interpreter) throws EvalError(Code)(Java Doc)
public Object invokeMethod(String methodName, Object[] args, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo) throws EvalError(Code)(Java Doc)
public void loadDefaultImports()(Code)(Java Doc)
public void nameSpaceChanged()(Code)(Java Doc)
public void prune()(Code)(Java Doc)
public void removeCommandPath(String path, Class clas)(Code)(Java Doc)
void setClassInstance(Object instance)(Code)(Java Doc)
void setClassManager(BshClassManager classManager)(Code)(Java Doc)
void setClassStatic(Class clas)(Code)(Java Doc)
void setLocalVariable(String name, Object value, boolean strictJava) throws UtilEvalError(Code)(Java Doc)
public void setMethod(String name, BshMethod method) throws UtilEvalError(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
void setNode(SimpleNode node)(Code)(Java Doc)
void setPackage(String packageName)(Code)(Java Doc)
public void setParent(NameSpace parent)(Code)(Java Doc)
public void setTypedVariable(String name, Class type, Object value, boolean isFinal) throws UtilEvalError(Code)(Java Doc)
public void setTypedVariable(String name, Class type, Object value, Modifiers modifiers) throws UtilEvalError(Code)(Java Doc)
public void setVariable(String name, Object value, boolean strictJava) throws UtilEvalError(Code)(Java Doc)
void setVariable(String name, Object value, boolean strictJava, boolean recurse) throws UtilEvalError(Code)(Java Doc)
public void setVariable(String name, Object value) throws UtilEvalError(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void unsetVariable(String name)(Code)(Java Doc)
protected Object unwrapVariable(Variable var) throws UtilEvalError(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.