Java Doc for CodeCompiler.java in  » Scripting » jython » org » python » 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 » jython » org.python.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.python.parser.Visitor
   org.python.compiler.CodeCompiler

CodeCompiler
public class CodeCompiler extends Visitor implements ClassConstants(Code)

Inner Class :class ExceptionHandler

Field Summary
final public static  intAUGGET
    
final public static  intAUGSET
    
final public static  intDEL
    
public  intEllipsis
    
public  intEmptyObjects
    
final public static  ObjectExit
    
final public static  intGET
    
final public static  ObjectNoExit
    
public  intPyFunction_init1PyFunction_closure_init1
    
public  intPyList_init2
    
public  intPyNone
    
public  intPySlice_init
    
public  intPyTuple_initPyList_initPyDictionary_init
    
final public static  intSET
    
public  intadd_traceback
    
public  intasserttype
    
static  String[]aug_methods
    
 int[]augbin_ops
    
 intaugmode
    
 intaugtmp1
    
 intaugtmp2
    
 intaugtmp3
    
 intaugtmp4
    
public  intbcfLevel
    
static  String[]bin_methods
    
 int[]bin_ops
    
public  intcall1call2
    
public  intcalla0calla1calla2calla3calla4
    
public  intcallextra
    
public  CompilerFlagscflags
    
public  StringclassName
    
public  Codecode
    
 int[]compare_ops
    
public  StackcontinueLabelsbreakLabels
    
 intdelglobaldellocal1dellocal2
    
public  StackexceptionHandlers
    
public  intexec
    
 intf_back
    
 intf_globalsPyFunction_initPyFunction_closure_init
    
 intf_lasti
    
 intf_savedlocals
    
public  booleanfast_localsprint_results
    
public  intgetattrdelattrsetattr
    
 intgetclosure
    
 intgetderefsetderef
    
 intgetglobalgetlocal1getlocal2
    
public  intgetitem2unpackSequence
    
public  intgetitemdelitemsetitem
    
public  intgetslicesetslicedelslice
    
public  intimportAllimportFrom
    
public  intimportOneimportOneAs
    
 booleaninSet
    
public  intinvoke2
    
public  intinvokea0invokea1invokea2
    
public  intiter
    
public  intiternext
    
 intlist_comprehension_count
    
public  intmakeClassmakeClass_closure
    
public  intmakeException0makeException1makeException2makeException3
    
public  intmatch_exception
    
public  Modulemodule
    
public  CodeCompilermrefs
    
public  ScopeInfomy_scope
    
public  Vectornames
    
public  intnonzero
    
 booleanoptimizeGlobals
    
public  ConstantPoolpool
    
public  intprint1print2print3print4print5print6
    
public  intprintResult
    
public  intset_exception
    
 intsetglobalsetlocal1setlocal2
    
public  intsetline
    
public  Hashtabletbl
    
 inttemporary
    
static  String[]unary_methods
    
 int[]unary_ops
    
 intyield_count
    
public  Vectoryields
    

Constructor Summary
public  CodeCompiler(Module module, boolean print_results)
    

Method Summary
public  ObjectInvoke(Attribute node, SimpleNode[] values)
    
public  ObjectSlice(Subscript node, Slice slice)
    
public  intbeginLoop()
    
public  ObjectdoTest(Label end_of_if, If node, int index)
    
 voidemitGetGlobal(String name)
    
public  voidexceptionTest(int exc, Label end_of_exceptions, TryExcept node, int index)
    
public  voidfinishLoop(int savebcf)
    
public  voidgetDocString(stmtType[] suite)
    
public  voidgetNone()
    
public  voidloadFrame()
    
public  voidmakeArray(SimpleNode[] nodes)
    
public  booleanmakeClosure(ScopeInfo scope)
    
public static  voidmakeStrings(Code c, String[] names, int n)
    
public  intmake_augbinop(int op)
    
public  intmake_binop(int op)
    
public  intmake_cmpop(int op)
    
public  intmake_unaryop(int op)
    
public  voidparse(modType node, Code code, boolean fast_locals, String className, boolean classBody, ScopeInfo scope, CompilerFlags cflags)
    
public  ObjectseqDel(exprType[] nodes)
    
public  ObjectseqSet(exprType[] nodes)
    
public  voidset(SimpleNode node)
    
public  voidset(SimpleNode node, int tmp)
    
public  voidsetLastI(int idx)
    
public  voidsetline(int line)
    
public  voidsetline(SimpleNode node)
    
public  intstoreTop()
    
public  Objectsuite(stmtType[] stmts)
    
protected  Objectunhandled_node(SimpleNode node)
    
public  ObjectvisitAssert(Assert node)
    
public  ObjectvisitAssign(Assign node)
    
public  ObjectvisitAttribute(Attribute node)
    
public  ObjectvisitAugAssign(AugAssign node)
    
public  ObjectvisitBinOp(BinOp node)
    
public  ObjectvisitBoolOp(BoolOp node)
    
public  ObjectvisitBreak(Break node)
    
public  ObjectvisitCall(Call node)
    
public  ObjectvisitClassDef(ClassDef node)
    
public  ObjectvisitCompare(Compare node)
    
public  ObjectvisitContinue(Continue node)
    
public  ObjectvisitDelete(Delete node)
    
public  ObjectvisitDict(Dict node)
    
public  ObjectvisitEllipsis(Ellipsis node)
    
public  ObjectvisitExec(Exec node)
    
public  ObjectvisitExpr(Expr node)
    
public  ObjectvisitExpression(Expression node)
    
public  ObjectvisitExtSlice(ExtSlice node)
    
public  ObjectvisitFor(For node)
    
public  ObjectvisitFunctionDef(FunctionDef node)
    
public  ObjectvisitGlobal(Global node)
    
public  ObjectvisitIf(If node)
    
public  ObjectvisitImport(Import node)
    
public  ObjectvisitImportFrom(ImportFrom node)
    
public  ObjectvisitIndex(Index node)
    
public  ObjectvisitInteractive(Interactive node)
    
public  ObjectvisitLambda(Lambda node)
    
public  ObjectvisitList(List node)
    
public  ObjectvisitListComp(ListComp node)
    
public  ObjectvisitModule(org.python.parser.ast.Module suite)
    
public  ObjectvisitName(Name node)
    
public  ObjectvisitNum(Num node)
    
public  ObjectvisitPass(Pass node)
    
public  ObjectvisitPrint(Print node)
    
public  ObjectvisitRaise(Raise node)
    
public  ObjectvisitRepr(Repr node)
    
public  ObjectvisitReturn(Return node)
    
public  ObjectvisitReturn(Return node, boolean inEval)
    
public  ObjectvisitSlice(Slice node)
    
public  ObjectvisitStr(Str node)
    
public  ObjectvisitSubscript(Subscript node)
    
public  ObjectvisitSuite(Suite node)
    
public  ObjectvisitTryExcept(TryExcept node)
    
public  ObjectvisitTryFinally(TryFinally node)
    
public  ObjectvisitTuple(Tuple node)
    
public  ObjectvisitUnaryOp(UnaryOp node)
    
public  ObjectvisitUnicode(Unicode node)
    
public  ObjectvisitWhile(While node)
    
public  ObjectvisitYield(Yield node)
    

Field Detail
AUGGET
final public static int AUGGET(Code)



AUGSET
final public static int AUGSET(Code)



DEL
final public static int DEL(Code)



Ellipsis
public int Ellipsis(Code)



EmptyObjects
public int EmptyObjects(Code)



Exit
final public static Object Exit(Code)



GET
final public static int GET(Code)



NoExit
final public static Object NoExit(Code)



PyFunction_init1PyFunction_closure_init1
public int PyFunction_init1PyFunction_closure_init1(Code)



PyList_init2
public int PyList_init2(Code)



PyNone
public int PyNone(Code)



PySlice_init
public int PySlice_init(Code)



PyTuple_initPyList_initPyDictionary_init
public int PyTuple_initPyList_initPyDictionary_init(Code)



SET
final public static int SET(Code)



add_traceback
public int add_traceback(Code)



asserttype
public int asserttype(Code)



aug_methods
static String[] aug_methods(Code)



augbin_ops
int[] augbin_ops(Code)



augmode
int augmode(Code)



augtmp1
int augtmp1(Code)



augtmp2
int augtmp2(Code)



augtmp3
int augtmp3(Code)



augtmp4
int augtmp4(Code)



bcfLevel
public int bcfLevel(Code)



bin_methods
static String[] bin_methods(Code)



bin_ops
int[] bin_ops(Code)



call1call2
public int call1call2(Code)



calla0calla1calla2calla3calla4
public int calla0calla1calla2calla3calla4(Code)



callextra
public int callextra(Code)



cflags
public CompilerFlags cflags(Code)



className
public String className(Code)



code
public Code code(Code)



compare_ops
int[] compare_ops(Code)



continueLabelsbreakLabels
public Stack continueLabelsbreakLabels(Code)



delglobaldellocal1dellocal2
int delglobaldellocal1dellocal2(Code)



exceptionHandlers
public Stack exceptionHandlers(Code)



exec
public int exec(Code)



f_back
int f_back(Code)



f_globalsPyFunction_initPyFunction_closure_init
int f_globalsPyFunction_initPyFunction_closure_init(Code)



f_lasti
int f_lasti(Code)



f_savedlocals
int f_savedlocals(Code)



fast_localsprint_results
public boolean fast_localsprint_results(Code)



getattrdelattrsetattr
public int getattrdelattrsetattr(Code)



getclosure
int getclosure(Code)



getderefsetderef
int getderefsetderef(Code)



getglobalgetlocal1getlocal2
int getglobalgetlocal1getlocal2(Code)



getitem2unpackSequence
public int getitem2unpackSequence(Code)



getitemdelitemsetitem
public int getitemdelitemsetitem(Code)



getslicesetslicedelslice
public int getslicesetslicedelslice(Code)



importAllimportFrom
public int importAllimportFrom(Code)



importOneimportOneAs
public int importOneimportOneAs(Code)



inSet
boolean inSet(Code)



invoke2
public int invoke2(Code)



invokea0invokea1invokea2
public int invokea0invokea1invokea2(Code)



iter
public int iter(Code)



iternext
public int iternext(Code)



list_comprehension_count
int list_comprehension_count(Code)



makeClassmakeClass_closure
public int makeClassmakeClass_closure(Code)



makeException0makeException1makeException2makeException3
public int makeException0makeException1makeException2makeException3(Code)



match_exception
public int match_exception(Code)



module
public Module module(Code)



mrefs
public CodeCompiler mrefs(Code)



my_scope
public ScopeInfo my_scope(Code)



names
public Vector names(Code)



nonzero
public int nonzero(Code)



optimizeGlobals
boolean optimizeGlobals(Code)



pool
public ConstantPool pool(Code)



print1print2print3print4print5print6
public int print1print2print3print4print5print6(Code)



printResult
public int printResult(Code)



set_exception
public int set_exception(Code)



setglobalsetlocal1setlocal2
int setglobalsetlocal1setlocal2(Code)



setline
public int setline(Code)



tbl
public Hashtable tbl(Code)



temporary
int temporary(Code)



unary_methods
static String[] unary_methods(Code)



unary_ops
int[] unary_ops(Code)



yield_count
int yield_count(Code)



yields
public Vector yields(Code)




Constructor Detail
CodeCompiler
public CodeCompiler(Module module, boolean print_results)(Code)




Method Detail
Invoke
public Object Invoke(Attribute node, SimpleNode[] values) throws Exception(Code)



Slice
public Object Slice(Subscript node, Slice slice) throws Exception(Code)



beginLoop
public int beginLoop()(Code)



doTest
public Object doTest(Label end_of_if, If node, int index) throws Exception(Code)



emitGetGlobal
void emitGetGlobal(String name) throws Exception(Code)



exceptionTest
public void exceptionTest(int exc, Label end_of_exceptions, TryExcept node, int index) throws Exception(Code)



finishLoop
public void finishLoop(int savebcf)(Code)



getDocString
public void getDocString(stmtType[] suite) throws Exception(Code)



getNone
public void getNone() throws IOException(Code)



loadFrame
public void loadFrame() throws Exception(Code)



makeArray
public void makeArray(SimpleNode[] nodes) throws Exception(Code)



makeClosure
public boolean makeClosure(ScopeInfo scope) throws Exception(Code)



makeStrings
public static void makeStrings(Code c, String[] names, int n) throws IOException(Code)



make_augbinop
public int make_augbinop(int op) throws Exception(Code)



make_binop
public int make_binop(int op) throws Exception(Code)



make_cmpop
public int make_cmpop(int op) throws Exception(Code)



make_unaryop
public int make_unaryop(int op) throws Exception(Code)



parse
public void parse(modType node, Code code, boolean fast_locals, String className, boolean classBody, ScopeInfo scope, CompilerFlags cflags) throws Exception(Code)



seqDel
public Object seqDel(exprType[] nodes) throws Exception(Code)



seqSet
public Object seqSet(exprType[] nodes) throws Exception(Code)



set
public void set(SimpleNode node) throws Exception(Code)



set
public void set(SimpleNode node, int tmp) throws Exception(Code)



setLastI
public void setLastI(int idx) throws Exception(Code)



setline
public void setline(int line) throws Exception(Code)



setline
public void setline(SimpleNode node) throws Exception(Code)



storeTop
public int storeTop() throws Exception(Code)



suite
public Object suite(stmtType[] stmts) throws Exception(Code)



unhandled_node
protected Object unhandled_node(SimpleNode node) throws Exception(Code)



visitAssert
public Object visitAssert(Assert node) throws Exception(Code)



visitAssign
public Object visitAssign(Assign node) throws Exception(Code)



visitAttribute
public Object visitAttribute(Attribute node) throws Exception(Code)



visitAugAssign
public Object visitAugAssign(AugAssign node) throws Exception(Code)



visitBinOp
public Object visitBinOp(BinOp node) throws Exception(Code)



visitBoolOp
public Object visitBoolOp(BoolOp node) throws Exception(Code)



visitBreak
public Object visitBreak(Break node) throws Exception(Code)



visitCall
public Object visitCall(Call node) throws Exception(Code)



visitClassDef
public Object visitClassDef(ClassDef node) throws Exception(Code)



visitCompare
public Object visitCompare(Compare node) throws Exception(Code)



visitContinue
public Object visitContinue(Continue node) throws Exception(Code)



visitDelete
public Object visitDelete(Delete node) throws Exception(Code)



visitDict
public Object visitDict(Dict node) throws Exception(Code)



visitEllipsis
public Object visitEllipsis(Ellipsis node) throws Exception(Code)



visitExec
public Object visitExec(Exec node) throws Exception(Code)



visitExpr
public Object visitExpr(Expr node) throws Exception(Code)



visitExpression
public Object visitExpression(Expression node) throws Exception(Code)



visitExtSlice
public Object visitExtSlice(ExtSlice node) throws Exception(Code)



visitFor
public Object visitFor(For node) throws Exception(Code)



visitFunctionDef
public Object visitFunctionDef(FunctionDef node) throws Exception(Code)



visitGlobal
public Object visitGlobal(Global node) throws Exception(Code)



visitIf
public Object visitIf(If node) throws Exception(Code)



visitImport
public Object visitImport(Import node) throws Exception(Code)



visitImportFrom
public Object visitImportFrom(ImportFrom node) throws Exception(Code)



visitIndex
public Object visitIndex(Index node) throws Exception(Code)



visitInteractive
public Object visitInteractive(Interactive node) throws Exception(Code)



visitLambda
public Object visitLambda(Lambda node) throws Exception(Code)



visitList
public Object visitList(List node) throws Exception(Code)



visitListComp
public Object visitListComp(ListComp node) throws Exception(Code)



visitModule
public Object visitModule(org.python.parser.ast.Module suite) throws Exception(Code)



visitName
public Object visitName(Name node) throws Exception(Code)



visitNum
public Object visitNum(Num node) throws Exception(Code)



visitPass
public Object visitPass(Pass node) throws Exception(Code)



visitPrint
public Object visitPrint(Print node) throws Exception(Code)



visitRaise
public Object visitRaise(Raise node) throws Exception(Code)



visitRepr
public Object visitRepr(Repr node) throws Exception(Code)



visitReturn
public Object visitReturn(Return node) throws Exception(Code)



visitReturn
public Object visitReturn(Return node, boolean inEval) throws Exception(Code)



visitSlice
public Object visitSlice(Slice node) throws Exception(Code)



visitStr
public Object visitStr(Str node) throws Exception(Code)



visitSubscript
public Object visitSubscript(Subscript node) throws Exception(Code)



visitSuite
public Object visitSuite(Suite node) throws Exception(Code)



visitTryExcept
public Object visitTryExcept(TryExcept node) throws Exception(Code)



visitTryFinally
public Object visitTryFinally(TryFinally node) throws Exception(Code)



visitTuple
public Object visitTuple(Tuple node) throws Exception(Code)



visitUnaryOp
public Object visitUnaryOp(UnaryOp node) throws Exception(Code)



visitUnicode
public Object visitUnicode(Unicode node) throws Exception(Code)



visitWhile
public Object visitWhile(While node) throws Exception(Code)



visitYield
public Object visitYield(Yield node) throws Exception(Code)



Methods inherited from org.python.parser.Visitor
protected void close_level(SimpleNode node) throws Exception(Code)(Java Doc)
protected void open_level(SimpleNode node) throws Exception(Code)(Java Doc)
public void traverse(SimpleNode node) throws Exception(Code)(Java Doc)
protected Object unhandled_node(SimpleNode node) throws Exception(Code)(Java Doc)
public void visit(SimpleNode[] nodes) throws Exception(Code)(Java Doc)
public Object visit(SimpleNode node) throws Exception(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.