Java Doc for imp.java in  » Testing » Marathon » org » python » core » 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 » Marathon » org.python.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.python.core.imp

imp
public class imp (Code)
Utility functions for "import" support.


Field Summary
final public static  intAPIVersion
    


Method Summary
public static  PyModuleaddModule(String name)
     If the given name is found in sys.modules, the entry from there is returned.
public static  StringcacheCompiledSource(String sourceFilename, String compiledFilename, byte[] compiledSource)
     Stores the bytes in compiledSource in compiledFilename.
public static  booleancaseok(File file, String filename, int namelen)
    
public static  byte[]compileSource(String name, File file, String sourceFilename, String compiledFilename)
    
static  byte[]compileSource(String name, InputStream fp, String filename)
    
static  PyObjectcreateFromClass(String name, Class c)
    
static  PyObjectcreateFromCode(String name, PyCode c)
     Returns a module with the given name whose contents are the results of running c.
static  PyObjectcreateFromCode(String name, PyCode c, String moduleLocation)
    
static  PyObjectcreateFromPyClass(String name, InputStream fp, boolean testing, String fileName)
    
public static  PyObjectcreateFromSource(String name, InputStream fp, String filename)
    
static  PyObjectcreateFromSource(String name, InputStream fp, String filename, String outFilename)
    
public static  StringdefaultEmptyPathDirectory(String directoryName)
     If directoryName is empty, return a correct directory name for a path.
static  PyObjectfind_module(String name, String moduleName, PyList path)
    
static  PyObjectgetPathImporter(PyObject cache, PyList hooks, PyObject p)
    
public static  ClassLoadergetSyspathJavaLoader()
    
public static  voidimportAll(String mod, PyFrame frame)
     Called from jython generated code when a statement like "from spam.eggs import *" is executed.
public static  PyObject[]importFrom(String mod, String[] names, PyFrame frame)
     Called from jython generated code when a stamenet like "from spam.eggs import foo, bar" is executed.
public static  PyObject[]importFromAs(String mod, String[] names, String[] asnames, PyFrame frame)
     Called from jython generated code when a statement like "from spam.eggs import foo as spam" is executed.
public static  PyObjectimportName(String name, boolean top)
     Import a module by name.
public static synchronized  PyObjectimportName(String name, boolean top, PyObject modDict, PyObject fromlist)
     Import a module by name.
public static  PyObjectimportOne(String mod, PyFrame frame)
     Called from jython generated code when a statement like "import spam" is executed.
public static  PyObjectimportOneAs(String mod, PyFrame frame)
     Called from jython generated code when a statement like "import spam as foo" is executed.
public static  PyObjectload(String name)
     Load the module by name.
public static  PyObjectloadFromCompiled(String name, InputStream stream, String filename)
    
static  PyObjectloadFromLoader(PyObject importer, String name)
    
static  PyObjectloadFromSource(String name, String modName, PyObject entry)
    
static  PyObjectreload(PyJavaClass c)
    
static  PyObjectreload(PyModule m)
    
static  PyObjectreplacePathItem(PyObject path)
    

Field Detail
APIVersion
final public static int APIVersion(Code)





Method Detail
addModule
public static PyModule addModule(String name)(Code)
If the given name is found in sys.modules, the entry from there is returned. Otherwise a new PyModule is created for the name and added to sys.modules



cacheCompiledSource
public static String cacheCompiledSource(String sourceFilename, String compiledFilename, byte[] compiledSource)(Code)
Stores the bytes in compiledSource in compiledFilename. If compiledFilename is null it's set to the results of makeCompiledFilename(sourcefileName) If sourceFilename is null or set to UNKNOWN_SOURCEFILE null is returned the compiledFilename eventually used or null if acompiledFilename couldn't be determined of if an error was thrownwhile writing to the cache file.



caseok
public static boolean caseok(File file, String filename, int namelen)(Code)



compileSource
public static byte[] compileSource(String name, File file, String sourceFilename, String compiledFilename)(Code)



compileSource
static byte[] compileSource(String name, InputStream fp, String filename)(Code)



createFromClass
static PyObject createFromClass(String name, Class c)(Code)



createFromCode
static PyObject createFromCode(String name, PyCode c)(Code)
Returns a module with the given name whose contents are the results of running c. __file__ is set to whatever is in c.



createFromCode
static PyObject createFromCode(String name, PyCode c, String moduleLocation)(Code)



createFromPyClass
static PyObject createFromPyClass(String name, InputStream fp, boolean testing, String fileName)(Code)



createFromSource
public static PyObject createFromSource(String name, InputStream fp, String filename)(Code)



createFromSource
static PyObject createFromSource(String name, InputStream fp, String filename, String outFilename)(Code)



defaultEmptyPathDirectory
public static String defaultEmptyPathDirectory(String directoryName)(Code)
If directoryName is empty, return a correct directory name for a path. If directoryName is not an empty string, this method returns directoryName unchanged.



find_module
static PyObject find_module(String name, String moduleName, PyList path)(Code)



getPathImporter
static PyObject getPathImporter(PyObject cache, PyList hooks, PyObject p)(Code)



getSyspathJavaLoader
public static ClassLoader getSyspathJavaLoader()(Code)



importAll
public static void importAll(String mod, PyFrame frame)(Code)
Called from jython generated code when a statement like "from spam.eggs import *" is executed.



importFrom
public static PyObject[] importFrom(String mod, String[] names, PyFrame frame)(Code)
Called from jython generated code when a stamenet like "from spam.eggs import foo, bar" is executed.



importFromAs
public static PyObject[] importFromAs(String mod, String[] names, String[] asnames, PyFrame frame)(Code)
Called from jython generated code when a statement like "from spam.eggs import foo as spam" is executed.



importName
public static PyObject importName(String name, boolean top)(Code)
Import a module by name.
Parameters:
  name - the name of the package to import
Parameters:
  top - if true, return the top module in the name, otherwise the last an imported module (Java or Python)



importName
public static synchronized PyObject importName(String name, boolean top, PyObject modDict, PyObject fromlist)(Code)
Import a module by name. This is the default call for __builtin__.__import__.
Parameters:
  name - the name of the package to import
Parameters:
  top - if true, return the top module in the name, otherwise the last
Parameters:
  modDict - the __dict__ of an already imported module an imported module (Java or Python)



importOne
public static PyObject importOne(String mod, PyFrame frame)(Code)
Called from jython generated code when a statement like "import spam" is executed.



importOneAs
public static PyObject importOneAs(String mod, PyFrame frame)(Code)
Called from jython generated code when a statement like "import spam as foo" is executed.



load
public static PyObject load(String name)(Code)
Load the module by name. Upon loading the module it will be added to sys.modules.
Parameters:
  name - the name of the module to load the loaded module



loadFromCompiled
public static PyObject loadFromCompiled(String name, InputStream stream, String filename)(Code)



loadFromLoader
static PyObject loadFromLoader(PyObject importer, String name)(Code)



loadFromSource
static PyObject loadFromSource(String name, String modName, PyObject entry)(Code)



reload
static PyObject reload(PyJavaClass c)(Code)



reload
static PyObject reload(PyModule m)(Code)



replacePathItem
static PyObject replacePathItem(PyObject path)(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.