/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/ExternalNameSpace.html
HTML | 651 lines | 574 code | 63 blank | 14 comment | 0 complexity | c70b8b09471731b24dc65c0aecd6a5bf MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:49 GMT-08:00 2008 -->
- <TITLE>
- ExternalNameSpace (jEdit API)
- </TITLE>
- <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.ExternalNameSpace class">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
- <NOSCRIPT>
- </NOSCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" >
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExternalNameSpace.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/EvalError.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/ExternalNameSpace.html" target="_top"><B>FRAMES</B></A>
- <A HREF="ExternalNameSpace.html" target="_top"><B>NO FRAMES</B></A>
-
- <NOSCRIPT>
- <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.bsh.NameSpace">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- org.gjt.sp.jedit.bsh</FONT>
- <BR>
- Class ExternalNameSpace</H2>
- <PRE>
- java.lang.Object
- <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">org.gjt.sp.jedit.bsh.NameSpace</A>
- <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.ExternalNameSpace</B>
- </PRE>
- <DL>
- <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSource.html" title="interface in org.gjt.sp.jedit.bsh">NameSource</A></DD>
- </DL>
- <HR>
- <DL>
- <DT><PRE>public class <B>ExternalNameSpace</B><DT>extends <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></DL>
- </PRE>
- <P>
- 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.
- </p>
- 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.
- <p/>
- 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.
- <P>
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.bsh.ExternalNameSpace">Serialized Form</A></DL>
- <HR>
- <P>
- <!-- ======== NESTED CLASS SUMMARY ======== -->
- <A NAME="nested_class_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Nested Class Summary</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="nested_classes_inherited_from_class_org.gjt.sp.jedit.bsh.NameSource"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Nested classes/interfaces inherited from interface org.gjt.sp.jedit.bsh.<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSource.html" title="interface in org.gjt.sp.jedit.bsh">NameSource</A></B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSource.Listener.html" title="interface in org.gjt.sp.jedit.bsh">NameSource.Listener</A></CODE></TD>
- </TR>
- </TABLE>
-
- <!-- =========== FIELD SUMMARY =========== -->
- <A NAME="field_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Field Summary</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="fields_inherited_from_class_org.gjt.sp.jedit.bsh.NameSpace"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Fields inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importedClasses">importedClasses</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#JAVACODE">JAVACODE</A></CODE></TD>
- </TR>
- </TABLE>
-
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <A NAME="constructor_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Constructor Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#ExternalNameSpace()">ExternalNameSpace</A></B>()</CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#ExternalNameSpace(org.gjt.sp.jedit.bsh.NameSpace, java.lang.String, java.util.Map)">ExternalNameSpace</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A> parent,
- java.lang.String name,
- java.util.Map externalMap)</CODE>
- <BR>
- </TD>
- </TR>
- </TABLE>
-
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#clear()">clear</A></B>()</CODE>
- <BR>
- Clear all variables, methods, and imports from this namespace and clear
- all values from the external map (via Map clear()).</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>protected void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getAllNamesAux(java.util.Vector)">getAllNamesAux</A></B>(java.util.Vector vec)</CODE>
- <BR>
- Helper for implementing NameSource</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A>[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getDeclaredVariables()">getDeclaredVariables</A></B>()</CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.util.Map</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getMap()">getMap</A></B>()</CODE>
- <BR>
- Get the map view of this namespace.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getMethod(java.lang.String, java.lang.Class[], boolean)">getMethod</A></B>(java.lang.String name,
- java.lang.Class[] sig,
- boolean declaredOnly)</CODE>
- <BR>
- Get the bsh method matching the specified signature declared in
- this name space or a parent.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>protected <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getVariableImpl(java.lang.String, boolean)">getVariableImpl</A></B>(java.lang.String name,
- boolean recurse)</CODE>
- <BR>
- Locate a variable and return the Variable object with optional
- recursion through parent name spaces.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#getVariableNames()">getVariableNames</A></B>()</CODE>
- <BR>
- Get the names of variables defined in this namespace.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>protected void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#putExternalMap(java.lang.String, java.lang.Object)">putExternalMap</A></B>(java.lang.String name,
- java.lang.Object value)</CODE>
- <BR>
- Place an unwrapped value in the external map.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#setMap(java.util.Map)">setMap</A></B>(java.util.Map map)</CODE>
- <BR>
- Set the external Map which to which this namespace synchronizes.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#setMethod(java.lang.String, org.gjt.sp.jedit.bsh.BshMethod)">setMethod</A></B>(java.lang.String name,
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A> method)</CODE>
- <BR>
- Note: this is primarily for internal use.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#setTypedVariable(java.lang.String, java.lang.Class, java.lang.Object, org.gjt.sp.jedit.bsh.Modifiers)">setTypedVariable</A></B>(java.lang.String name,
- java.lang.Class type,
- java.lang.Object value,
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/Modifiers.html" title="class in org.gjt.sp.jedit.bsh">Modifiers</A> modifiers)</CODE>
- <BR>
- Declare a variable in the local scope and set its initial value.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/ExternalNameSpace.html#unsetVariable(java.lang.String)">unsetVariable</A></B>(java.lang.String name)</CODE>
- <BR>
- Remove the variable from the namespace.</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_org.gjt.sp.jedit.bsh.NameSpace"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Methods inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#addCommandPath(java.lang.String, java.lang.Class)">addCommandPath</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#addNameSourceListener(org.gjt.sp.jedit.bsh.NameSource.Listener)">addNameSourceListener</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#classLoaderChanged()">classLoaderChanged</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#doSuperImport()">doSuperImport</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#get(java.lang.String, org.gjt.sp.jedit.bsh.Interpreter)">get</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getAllNames()">getAllNames</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getClass(java.lang.String)">getClass</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getClassManager()">getClassManager</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getCommand(java.lang.String)">getCommand</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getCommand(java.lang.String, java.lang.Class[], org.gjt.sp.jedit.bsh.Interpreter)">getCommand</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getGlobal(org.gjt.sp.jedit.bsh.Interpreter)">getGlobal</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getImportedMethod(java.lang.String, java.lang.Class[])">getImportedMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getImportedVar(java.lang.String)">getImportedVar</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getInvocationLine()">getInvocationLine</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getInvocationText()">getInvocationText</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getMethod(java.lang.String, java.lang.Class[])">getMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getMethodNames()">getMethodNames</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getMethods()">getMethods</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getName()">getName</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getParent()">getParent</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getSuper(org.gjt.sp.jedit.bsh.Interpreter)">getSuper</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariable(java.lang.String)">getVariable</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariable(java.lang.String, boolean)">getVariable</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#identifierToClass(org.gjt.sp.jedit.bsh.ClassIdentifier)">identifierToClass</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importClass(java.lang.String)">importClass</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importCommands(java.lang.String)">importCommands</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importObject(java.lang.Object)">importObject</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importPackage(java.lang.String)">importPackage</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#importStatic(java.lang.Class)">importStatic</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#invokeMethod(java.lang.String, java.lang.Object[], org.gjt.sp.jedit.bsh.Interpreter)">invokeMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#invokeMethod(java.lang.String, java.lang.Object[], org.gjt.sp.jedit.bsh.Interpreter, org.gjt.sp.jedit.bsh.CallStack, org.gjt.sp.jedit.bsh.SimpleNode)">invokeMethod</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#loadDefaultImports()">loadDefaultImports</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#nameSpaceChanged()">nameSpaceChanged</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#prune()">prune</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#removeCommandPath(java.lang.String, java.lang.Class)">removeCommandPath</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setName(java.lang.String)">setName</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setParent(org.gjt.sp.jedit.bsh.NameSpace)">setParent</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setTypedVariable(java.lang.String, java.lang.Class, java.lang.Object, boolean)">setTypedVariable</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setVariable(java.lang.String, java.lang.Object)">setVariable</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setVariable(java.lang.String, java.lang.Object, boolean)">setVariable</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#toString()">toString</A>, <A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#unwrapVariable(org.gjt.sp.jedit.bsh.Variable)">unwrapVariable</A></CODE></TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
- </TR>
- </TABLE>
-
- <P>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <A NAME="constructor_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Constructor Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="ExternalNameSpace()"><!-- --></A><H3>
- ExternalNameSpace</H3>
- <PRE>
- public <B>ExternalNameSpace</B>()</PRE>
- <DL>
- </DL>
- <HR>
- <A NAME="ExternalNameSpace(org.gjt.sp.jedit.bsh.NameSpace, java.lang.String, java.util.Map)"><!-- --></A><H3>
- ExternalNameSpace</H3>
- <PRE>
- public <B>ExternalNameSpace</B>(<A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A> parent,
- java.lang.String name,
- java.util.Map externalMap)</PRE>
- <DL>
- </DL>
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="getMap()"><!-- --></A><H3>
- getMap</H3>
- <PRE>
- public java.util.Map <B>getMap</B>()</PRE>
- <DL>
- <DD>Get the map view of this namespace.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setMap(java.util.Map)"><!-- --></A><H3>
- setMap</H3>
- <PRE>
- public void <B>setMap</B>(java.util.Map map)</PRE>
- <DL>
- <DD>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.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="unsetVariable(java.lang.String)"><!-- --></A><H3>
- unsetVariable</H3>
- <PRE>
- public void <B>unsetVariable</B>(java.lang.String name)</PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#unsetVariable(java.lang.String)">NameSpace</A></CODE></B></DD>
- <DD>Remove the variable from the namespace.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#unsetVariable(java.lang.String)">unsetVariable</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getVariableNames()"><!-- --></A><H3>
- getVariableNames</H3>
- <PRE>
- public java.lang.String[] <B>getVariableNames</B>()</PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariableNames()">NameSpace</A></CODE></B></DD>
- <DD>Get the names of variables defined in this namespace.
- (This does not show variables in parent namespaces).
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariableNames()">getVariableNames</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getVariableImpl(java.lang.String, boolean)"><!-- --></A><H3>
- getVariableImpl</H3>
- <PRE>
- protected <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A> <B>getVariableImpl</B>(java.lang.String name,
- boolean recurse)
- throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariableImpl(java.lang.String, boolean)">NameSpace</A></CODE></B></DD>
- <DD>Locate a variable and return the Variable object with optional
- recursion through parent name spaces.
- <p/>
- If this namespace is static, return only static variables.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getVariableImpl(java.lang.String, boolean)">getVariableImpl</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Returns:</B><DD>the Variable value or null if it is not defined
- <DT><B>Throws:</B>
- <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getDeclaredVariables()"><!-- --></A><H3>
- getDeclaredVariables</H3>
- <PRE>
- public <A HREF="../../../../../org/gjt/sp/jedit/bsh/Variable.html" title="class in org.gjt.sp.jedit.bsh">Variable</A>[] <B>getDeclaredVariables</B>()</PRE>
- <DL>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getDeclaredVariables()">getDeclaredVariables</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setTypedVariable(java.lang.String, java.lang.Class, java.lang.Object, org.gjt.sp.jedit.bsh.Modifiers)"><!-- --></A><H3>
- setTypedVariable</H3>
- <PRE>
- public void <B>setTypedVariable</B>(java.lang.String name,
- java.lang.Class type,
- java.lang.Object value,
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/Modifiers.html" title="class in org.gjt.sp.jedit.bsh">Modifiers</A> modifiers)
- throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setTypedVariable(java.lang.String, java.lang.Class, java.lang.Object, org.gjt.sp.jedit.bsh.Modifiers)">NameSpace</A></CODE></B></DD>
- <DD>Declare a variable in the local scope and set its initial value.
- Value may be null to indicate that we would like the default value
- for the variable type. (e.g. 0 for integer types, null for object
- types). An existing typed variable may only be set to the same type.
- If an untyped variable of the same name exists it will be overridden
- with the new typed var.
- The set will perform a Types.getAssignableForm() on the value if
- necessary.
- <p>
- Note: this method is primarily intended for use internally. If you use
- this method outside of the bsh package and wish to set variables with
- primitive values you will have to wrap them using bsh.Primitive.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setTypedVariable(java.lang.String, java.lang.Class, java.lang.Object, org.gjt.sp.jedit.bsh.Modifiers)">setTypedVariable</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- <DD><CODE>value</CODE> - If value is null, you'll get the default value for the type<DD><CODE>modifiers</CODE> - may be null
- <DT><B>Throws:</B>
- <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh"><CODE>Primitive</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setMethod(java.lang.String, org.gjt.sp.jedit.bsh.BshMethod)"><!-- --></A><H3>
- setMethod</H3>
- <PRE>
- public void <B>setMethod</B>(java.lang.String name,
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A> method)
- throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setMethod(java.lang.String, org.gjt.sp.jedit.bsh.BshMethod)">NameSpace</A></CODE></B></DD>
- <DD>Note: this is primarily for internal use.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#setMethod(java.lang.String, org.gjt.sp.jedit.bsh.BshMethod)">setMethod</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Throws:</B>
- <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html#source(java.lang.String)"><CODE>Interpreter.source( String )</CODE></A>,
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html#eval(java.lang.String)"><CODE>Interpreter.eval( String )</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getMethod(java.lang.String, java.lang.Class[], boolean)"><!-- --></A><H3>
- getMethod</H3>
- <PRE>
- public <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshMethod.html" title="class in org.gjt.sp.jedit.bsh">BshMethod</A> <B>getMethod</B>(java.lang.String name,
- java.lang.Class[] sig,
- boolean declaredOnly)
- throws <A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getMethod(java.lang.String, java.lang.Class[], boolean)">NameSpace</A></CODE></B></DD>
- <DD>Get the bsh method matching the specified signature declared in
- this name space or a parent.
- <p>
- Note: this method is primarily intended for use internally. If you use
- this method outside of the bsh package you will have to be familiar
- with BeanShell's use of the Primitive wrapper class.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getMethod(java.lang.String, java.lang.Class[], boolean)">getMethod</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- <DD><CODE>declaredOnly</CODE> - if true then only methods declared directly in this
- namespace will be found and no inherited or imported methods will
- be visible.
- <DT><B>Returns:</B><DD>the BshMethod or null if not found
- <DT><B>Throws:</B>
- <DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/Primitive.html" title="class in org.gjt.sp.jedit.bsh"><CODE>Primitive</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getAllNamesAux(java.util.Vector)"><!-- --></A><H3>
- getAllNamesAux</H3>
- <PRE>
- protected void <B>getAllNamesAux</B>(java.util.Vector vec)</PRE>
- <DL>
- <DD><B>Description copied from class: <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getAllNamesAux(java.util.Vector)">NameSpace</A></CODE></B></DD>
- <DD>Helper for implementing NameSource
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#getAllNamesAux(java.util.Vector)">getAllNamesAux</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="clear()"><!-- --></A><H3>
- clear</H3>
- <PRE>
- public void <B>clear</B>()</PRE>
- <DL>
- <DD>Clear all variables, methods, and imports from this namespace and clear
- all values from the external map (via Map clear()).
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#clear()">clear</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html" title="class in org.gjt.sp.jedit.bsh">NameSpace</A></CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/NameSpace.html#loadDefaultImports()"><CODE>NameSpace.loadDefaultImports()</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="putExternalMap(java.lang.String, java.lang.Object)"><!-- --></A><H3>
- putExternalMap</H3>
- <PRE>
- protected void <B>putExternalMap</B>(java.lang.String name,
- java.lang.Object value)</PRE>
- <DL>
- <DD>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.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <!-- ========= END OF CLASS DATA ========= -->
- <HR>
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <A NAME="navbar_bottom"><!-- --></A>
- <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_bottom_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExternalNameSpace.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/EvalError.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>
- <A HREF="../../../../../org/gjt/sp/jedit/bsh/Interpreter.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/ExternalNameSpace.html" target="_top"><B>FRAMES</B></A>
- <A HREF="ExternalNameSpace.html" target="_top"><B>NO FRAMES</B></A>
-
- <NOSCRIPT>
- <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.bsh.NameSpace">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- </BODY>
- </HTML>