Java Doc for BlockNameSpace.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.BlockNameSpace

BlockNameSpace
class BlockNameSpace extends NameSpace (Code)
A specialized namespace for Blocks (e.g. the body of a "for" statement). The Block acts like a child namespace but only for typed variables declared within it (block local scope) or untyped variables explicitly set in it via setBlockVariable(). Otherwise variable assignment (including untyped variable usage) acts like it is part of the containing block.




Constructor Summary
public  BlockNameSpace(NameSpace parent)
    

Method Summary
public  ThisgetSuper(Interpreter declaringInterpreter)
    
 ThisgetThis(Interpreter declaringInterpreter)
     Get a 'this' reference is our parent's 'this' for the object closure. e.g.
public  voidimportClass(String name)
    
public  voidimportPackage(String name)
    
public  voidsetBlockVariable(String name, Object value)
     Set an untyped variable in the block namespace. The BlockNameSpace would normally delegate this set to the parent. Typed variables are naturally set locally. This is used in try/catch block argument.
public  voidsetMethod(String name, BshMethod method)
    
public  voidsetVariable(String name, Object value, boolean strictJava, boolean recurse)
     Override the standard namespace behavior to make assignments happen in our parent (enclosing) namespace, unless the variable has already been assigned here via a typed declaration or through the special setBlockVariable() (used for untyped args in try/catch).

i.e.



Constructor Detail
BlockNameSpace
public BlockNameSpace(NameSpace parent) throws EvalError(Code)




Method Detail
getSuper
public This getSuper(Interpreter declaringInterpreter)(Code)
super is our parent's super



getThis
This getThis(Interpreter declaringInterpreter)(Code)
Get a 'this' reference is our parent's 'this' for the object closure. e.g. Normally a 'this' reference to a BlockNameSpace (e.g. if () { } ) resolves to the parent namespace (e.g. the namespace containing the "if" statement).
See Also:   BlockNameSpace.getBlockThis(Interpreter)



importClass
public void importClass(String name)(Code)
delegate import to our parent



importPackage
public void importPackage(String name)(Code)
delegate import to our parent



setBlockVariable
public void setBlockVariable(String name, Object value) throws UtilEvalError(Code)
Set an untyped variable in the block namespace. The BlockNameSpace would normally delegate this set to the parent. Typed variables are naturally set locally. This is used in try/catch block argument.



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



setVariable
public void setVariable(String name, Object value, boolean strictJava, boolean recurse) throws UtilEvalError(Code)
Override the standard namespace behavior to make assignments happen in our parent (enclosing) namespace, unless the variable has already been assigned here via a typed declaration or through the special setBlockVariable() (used for untyped args in try/catch).

i.e. only allow typed var declaration to happen in this namespace. Typed vars are handled in the ordinary way local scope. All untyped assignments are delegated to the enclosing context.




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.