Java Doc for CompileContext.java in  » Scripting » Pnuts » pnuts » compiler » 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 » Pnuts » pnuts.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   pnuts.lang.Context
      pnuts.compiler.CompileContext

CompileContext
class CompileContext extends Context (Code)
This class is used with pnuts.compiler.Compiler class to compile Pnuts scripts.
See Also:   pnuts.compiler.Compiler
See Also:   pnuts.lang.Context


Field Summary
 BeanEnvbeanEnv
    
 ClassFilecf
    
 ListclassFiles
    
 Listclasses
    
 intcolumn
    
 StringconstClassName
    
 Mapconstants
    
 intcontextIndex
    
 ControlEnvctrl_env
    
 Frameenv
    
 java.util.StackfinallyBlocks
    
 booleanhasAttachMethod
    
 booleaninGeneratorBlock
    
 intline
    
 LabelreturnLabel
    
 ObjectscriptSource
    
 Symbolsym
    

Constructor Summary
 CompileContext()
    
 CompileContext(Context context)
    

Method Summary
 void_closeFrame()
    
 int_declare(String symbol)
    
 void_declare(String symbol, int local)
    
 void_declare(String symbol, int local, int idx)
    
 void_declare_frame(String symbol, int local)
    
 void_openFrame(String func, String locals, boolean leaf)
    
 voidaddBranch()
    
public  Objectclone()
    
 voidcloseBranchEnv()
    
 voidcloseControlEnv()
    
 voidcloseScope()
    
 voiddebug(ClassFile file)
    
 voiddebug()
    
 intdeclare(String symbol)
    
 voiddeclare(String symbol, int local)
    
 voiddeclare(String symbol, int local, int idx)
    
 ReferencefindReference(String symbol)
    
 LabelgetBreakLabel()
    
public  ClassFilegetClassFile()
    
public  ListgetClassFiles()
     Enumerate related class files.
 intgetContextIndex()
    
 LabelgetContinueLabel()
    
 ReferencegetReference(String symbol)
    
 ReferencegetReference(String symbol, boolean flag)
    
 voidleaveControlEnv()
    
 voidleaveControlEnv(ControlEnv env)
    
 voidleaveFrame()
    
 Classload(ClassFile file, CodeLoader loader)
    
 Classload(ClassFile file, CodeLoader loader, ByteArrayOutputStream bout)
    
 ClassloadClasses(CodeLoader loader)
    
 voidopenBranchEnv()
    
 ControlEnvopenControlEnv(int id)
    
 voidopenScope(String locals)
    
 LabelpopFinallyBlock()
    
 voidpushFinallyBlock(Label label)
    
 voidredefine(String symbol)
    
 voidresolve(CodeLoader loader)
    
 voidsetContextIndex(int index)
    
 voidsetReference(String symbol)
    
public  voidwrite(DataOutputStream out)
    

Field Detail
beanEnv
BeanEnv beanEnv(Code)



cf
ClassFile cf(Code)



classFiles
List classFiles(Code)



classes
List classes(Code)



column
int column(Code)



constClassName
String constClassName(Code)



constants
Map constants(Code)



contextIndex
int contextIndex(Code)



ctrl_env
ControlEnv ctrl_env(Code)



env
Frame env(Code)



finallyBlocks
java.util.Stack finallyBlocks(Code)



hasAttachMethod
boolean hasAttachMethod(Code)



inGeneratorBlock
boolean inGeneratorBlock(Code)



line
int line(Code)



returnLabel
Label returnLabel(Code)



scriptSource
Object scriptSource(Code)



sym
Symbol sym(Code)




Constructor Detail
CompileContext
CompileContext()(Code)



CompileContext
CompileContext(Context context)(Code)




Method Detail
_closeFrame
void _closeFrame()(Code)



_declare
int _declare(String symbol)(Code)



_declare
void _declare(String symbol, int local)(Code)



_declare
void _declare(String symbol, int local, int idx)(Code)



_declare_frame
void _declare_frame(String symbol, int local)(Code)



_openFrame
void _openFrame(String func, String locals, boolean leaf)(Code)



addBranch
void addBranch()(Code)



clone
public Object clone()(Code)



closeBranchEnv
void closeBranchEnv()(Code)



closeControlEnv
void closeControlEnv()(Code)



closeScope
void closeScope()(Code)



debug
void debug(ClassFile file)(Code)



debug
void debug()(Code)



declare
int declare(String symbol)(Code)



declare
void declare(String symbol, int local)(Code)



declare
void declare(String symbol, int local, int idx)(Code)



findReference
Reference findReference(String symbol)(Code)



getBreakLabel
Label getBreakLabel()(Code)



getClassFile
public ClassFile getClassFile()(Code)
Get the primary class file



getClassFiles
public List getClassFiles()(Code)
Enumerate related class files.



getContextIndex
int getContextIndex()(Code)



getContinueLabel
Label getContinueLabel()(Code)



getReference
Reference getReference(String symbol)(Code)



getReference
Reference getReference(String symbol, boolean flag)(Code)



leaveControlEnv
void leaveControlEnv()(Code)



leaveControlEnv
void leaveControlEnv(ControlEnv env)(Code)



leaveFrame
void leaveFrame()(Code)



load
Class load(ClassFile file, CodeLoader loader) throws IOException(Code)



load
Class load(ClassFile file, CodeLoader loader, ByteArrayOutputStream bout) throws IOException(Code)



loadClasses
Class loadClasses(CodeLoader loader) throws IOException(Code)



openBranchEnv
void openBranchEnv()(Code)



openControlEnv
ControlEnv openControlEnv(int id)(Code)



openScope
void openScope(String locals)(Code)



popFinallyBlock
Label popFinallyBlock()(Code)



pushFinallyBlock
void pushFinallyBlock(Label label)(Code)



redefine
void redefine(String symbol)(Code)



resolve
void resolve(CodeLoader loader)(Code)



setContextIndex
void setContextIndex(int index)(Code)



setReference
void setReference(String symbol)(Code)



write
public void write(DataOutputStream out) throws IOException(Code)



Fields inherited from pnuts.lang.Context
protected int beginColumn(Code)(Java Doc)
protected int beginLine(Code)(Java Doc)
final public static PrintWriter defaultErrorStream(Code)(Java Doc)
final public static PrintWriter defaultOutputStream(Code)(Java Doc)
final public static PrintWriter defaultTerminalStream(Code)(Java Doc)
protected int depth(Code)(Java Doc)
protected int endLine(Code)(Java Doc)
protected SymbolTable environment(Code)(Java Doc)
protected ImportEnv importEnv(Code)(Java Doc)
protected Cell loadingResource(Code)(Java Doc)
protected ModuleList moduleList(Code)(Java Doc)
protected SymbolTable provideTable(Code)(Java Doc)
protected Hashtable unitTable(Code)(Java Doc)

Methods inherited from pnuts.lang.Context
public void autoload(String name, String file)(Code)(Java Doc)
public void autoload(String name, AutoloadHook hook)(Code)(Java Doc)
public synchronized void clearPackages()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public Object clone(boolean clear_attributes, boolean clear_locals)(Code)(Java Doc)
protected void close(Function func, Object args)(Code)(Java Doc)
public boolean defined(String name)(Code)(Java Doc)
public Object get(String symbol)(Code)(Java Doc)
public ClassLoader getClassLoader()(Code)(Java Doc)
public ClassLoader getCodeLoader()(Code)(Java Doc)
public Configuration getConfiguration()(Code)(Java Doc)
public Package getCurrentPackage()(Code)(Java Doc)
public PrintWriter getErrorStream()(Code)(Java Doc)
public PrintWriter getErrorWriter()(Code)(Java Doc)
public Executable getExitHook()(Code)(Java Doc)
public Object getId(String interned)(Code)(Java Doc)
public Implementation getImplementation()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public OutputStream getOutputStream()(Code)(Java Doc)
public PnutsImpl getPnutsImpl()(Code)(Java Doc)
public String getScriptEncoding()(Code)(Java Doc)
protected Object getScriptSource()(Code)(Java Doc)
public PrintWriter getTerminalStream()(Code)(Java Doc)
public PrintWriter getTerminalWriter()(Code)(Java Doc)
protected Object getValue(String symbol)(Code)(Java Doc)
public PrintWriter getWriter()(Code)(Java Doc)
public boolean isVerbose()(Code)(Java Doc)
public Enumeration keys()(Code)(Java Doc)
protected void loadModule(String name, Package pkg) throws IOException(Code)(Java Doc)
protected void onError(Throwable t)(Code)(Java Doc)
protected void onExit(Object arg)(Code)(Java Doc)
protected void open(Function f, Object args)(Code)(Java Doc)
public void registerQuantityFactory(String unit, QuantityFactory fac)(Code)(Java Doc)
public Class resolveClass(String symbol)(Code)(Java Doc)
public Object resolveSymbol(String interned)(Code)(Java Doc)
public void set(String symbol, Object value)(Code)(Java Doc)
public void setClassLoader(ClassLoader loader)(Code)(Java Doc)
public void setCodeLoader(ClassLoader loader)(Code)(Java Doc)
public void setConfiguration(Configuration config)(Code)(Java Doc)
public void setCurrentPackage(Package pkg)(Code)(Java Doc)
public void setErrorStream(Object errorStream, boolean autoFlush)(Code)(Java Doc)
public void setErrorStream(Object errorStream)(Code)(Java Doc)
public void setErrorWriter(Writer w, boolean autoFlush)(Code)(Java Doc)
public void setErrorWriter(Writer w)(Code)(Java Doc)
public void setExitHook(Executable hook)(Code)(Java Doc)
public void setImplementation(Implementation impl)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setOutputStream(Object out, boolean autoFlush)(Code)(Java Doc)
public void setOutputStream(Object outputStream)(Code)(Java Doc)
public void setOutputStream(OutputStream out)(Code)(Java Doc)
public void setPnutsImpl(PnutsImpl impl)(Code)(Java Doc)
public void setScriptEncoding(String encoding)(Code)(Java Doc)
public void setTerminalStream(Object str, boolean autoFlush)(Code)(Java Doc)
public void setTerminalStream(Object stream)(Code)(Java Doc)
public void setTerminalWriter(Writer w)(Code)(Java Doc)
public void setTerminalWriter(Writer w, boolean autoFlush)(Code)(Java Doc)
protected void setValue(String symbol, Object obj)(Code)(Java Doc)
public void setVerbose(boolean b)(Code)(Java Doc)
public void setWriter(Writer out)(Code)(Java Doc)
public void setWriter(Writer out, boolean autoFlush)(Code)(Java Doc)
public synchronized boolean unusePackage(Package pkg)(Code)(Java Doc)
protected void updateColumn(int column)(Code)(Java Doc)
protected void updateLine(SimpleNode node, int beginLine, int beginColumn)(Code)(Java Doc)
protected void updateLine(int line)(Code)(Java Doc)
public boolean usePackage(Package pkg, boolean checkException)(Code)(Java Doc)
public boolean usePackage(String name)(Code)(Java Doc)
public boolean usePackage(String name, boolean checkException)(Code)(Java Doc)
public String[] usedPackages()(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.