Java Doc for Compiler.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
   java.lang.Runtime
      pnuts.compiler.Compiler

Compiler
public class Compiler extends Runtime implements Visitor(Code)
Pnuts to JVM bytecode compiler

Inner Class :static class MethodSignatureInfo
Inner Class :static class ConstructorSignatureInfo extends MethodSignatureInfo
Inner Class :static class FieldSignatureInfo
Inner Class :public static class ClassGenerationResult
Inner Class :static class CodeLoaderFactory
Inner Class :static class PrivilegedCodeLoaderFactory extends CodeLoaderFactory

Field Summary
final static  StringMETHOD_FACTORY_FUNCTION
    
final static  Class[]NO_PARAM
    
final static  StringSTAR
    
final static  StringSUPER
    
final static  StringTHIS
    
final static  StringYIELD
    
 boolean_constantFolding
    
 boolean_includeColumnNo
    
 boolean_includeLineNo
    
 booleanautomatic
    
 StringclassName
    
static  CodeLoaderFactorycodeLoaderFactory
    
static  booleanhasBootClassLoader
    
static  booleanhasJava2Security
    
static  booleanhasValueOfPrimitive
    
 booleanincludeMainMethod
    
static  CodeLoaderFactoryprivilegedCodeLoaderFactory
    
 StringruntimeClassName
    
 StringsourceFile
    
 booleantraceMode
    
 booleanuseDynamicProxy
    

Constructor Summary
public  Compiler()
    
public  Compiler(String className)
    
public  Compiler(String className, boolean automatic)
    
public  Compiler(String className, boolean automatic, boolean useDynamicProxy)
    

Method Summary
public  Object_listElements(SimpleNode node, Context context)
    
 Object_start(SimpleNode node, Context context, boolean catchJump)
    
protected  Objectaccept(SimpleNode node, int idx, Context context)
    
static  voidaddConstant(Object n, Context context)
    
 voidaddLineInfo(CompileContext cc, int ctx, SimpleNode node)
    
public  ObjectaddNode(SimpleNode node, Context context)
    
public  ObjectandNode(SimpleNode node, Context context)
    
public  ObjectapplicationNode(SimpleNode node, Context context)
    
public  ObjectarrayType(SimpleNode node, Context context)
    
 voidassignGlobal(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)
    
 voidassignId(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean mutable, boolean nopop)
    
 voidassignIndex(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)
    
 voidassignMember(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)
    
 voidassignRange(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc)
    
 voidassignStaticMember(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)
    
public  Objectassignment(SimpleNode node, Context context)
    
public  ObjectassignmentAA(SimpleNode node, Context context)
    
public  ObjectassignmentDA(SimpleNode node, Context context)
    
public  ObjectassignmentEA(SimpleNode node, Context context)
    
public  ObjectassignmentLA(SimpleNode node, Context context)
    
public  ObjectassignmentMA(SimpleNode node, Context context)
    
public  ObjectassignmentOA(SimpleNode node, Context context)
    
public  ObjectassignmentPA(SimpleNode node, Context context)
    
public  ObjectassignmentRA(SimpleNode node, Context context)
    
public  ObjectassignmentRAA(SimpleNode node, Context context)
    
public  ObjectassignmentSA(SimpleNode node, Context context)
    
public  ObjectassignmentTA(SimpleNode node, Context context)
    
public static  ClassattachClosure(Class cls, PnutsFunction closure, Context context)
    
public  ObjectbeanDef(SimpleNode node, Context context)
    
 Objectbinary(String operator, SimpleNode node, Context context)
    
public  ObjectblockNode(SimpleNode node, Context context)
    
 Objectbool(String operator, SimpleNode node, Context context)
    
 voidbooleanCheck(int id, ClassFile cf, Context context)
    
public  ObjectbreakNode(SimpleNode node, Context context)
    
 voidbuildArray(SimpleNode node, Context context)
    
static  SimpleNodebuildClosureNode(List nodes, List fieldSigs, Map typeMap)
    
static  voidbuildFieldDeclaration(FieldSignatureInfo fsig, List assignmentNodes)
    
static  SimpleNodebuildGetterNode(Class type, String name)
    
 voidbuildList(SimpleNode node, Context context)
    
static  SimpleNodebuildMethodFunction(SimpleNode methodDef, MethodSignatureInfo siginfo, Set superMethodNames)
    
static  SimpleNodebuildSetterNode(Class type, String name)
    
public static  ObjectbuildSubclassInstance(String encodedNode, Context context)
    
public  ObjectbuildSubclassInstance(SimpleNode node, Context context)
    
 booleancanConstantFold(SimpleNode node)
    
static  Stringcapitalize(String name)
    
public  ObjectcastExpression(SimpleNode node, Context context)
    
public  ObjectcatchBlock(SimpleNode node, Context context)
    
public  ObjectcatchNode(SimpleNode node, Context context)
    
public  ObjectcharacterNode(SimpleNode node, Context context)
    
public  ObjectclassDef(SimpleNode node, Context context)
    
public  ObjectclassDefBody(SimpleNode node, Context context)
    
public  ObjectclassName(SimpleNode node, Context context)
    
public  ObjectclassNode(SimpleNode node, Context context)
    
public  ObjectclassScript(SimpleNode node, Context context)
    
static  MapcollectThisReferences(SimpleNode node, Set superMethodNames)
    
static  voidcollectThisReferences(SimpleNode node, Map frefs, Set superMethodNames)
    
public  Objectcompile(Pnuts pnuts, ClassFileHandler handler)
     Compile a parsed expression.
 Objectcompile(Pnuts pnuts, ClassFileHandler handler, CompileContext cc)
    
public  Pnutscompile(Pnuts pnuts, Context context)
     Compile a parsed expression.
Parameters:
  pnuts - a parsed expression to be compiled
Parameters:
  context - a context in which the expression is compiled.
public  Pnutscompile(String expression)
     Compile an expression.
Parameters:
  expression - an expression to be compiled.
public  Pnutscompile(String expression, Context context)
     Compile an expression.
Parameters:
  expression - an expression to be compiled
Parameters:
  context - a context in which the expression is compiled.
public  Objectcompile(PnutsFunction pf, ClassFileHandler handler)
     Compile a function group.
public  PnutsFunctioncompile(PnutsFunction pf)
     Compile a function group
Parameters:
  pf - a function group to be compiled.
public  PnutsFunctioncompile(PnutsFunction pf, Context context)
     Compile a function group
Parameters:
  pf - a function group to be compiled.
Parameters:
  context - a context in which the function is compiled.
public  ClassFilecompileClassScript(SimpleNode classScriptNode, Object scriptSource, List helperClassFiles)
    
public  ObjectcompileClassScript(Reader reader, Object scriptSource, ClassFileHandler handler)
    
 voidcompute(ClassFile cf, int id, int ctx)
    
public  ObjectcontinueNode(SimpleNode node, Context context)
    
static  voidconvertIndexNode(SimpleNode node)
    
static  CodeLoadercreateCodeLoader(ClassLoader loader, boolean privileged)
     Create a class loader to load compiled code.
public static  CodeLoadercreateCodeLoader(ClassLoader loader)
    
static  Stringdecapitalize(String name)
    
public  ClassdefineClass(String encodedNode, Context context)
    
public  ClassdefineClass(SimpleNode node, Context context)
    
public  ObjectdivideNode(SimpleNode node, Context context)
    
public  ObjectdoStatement(SimpleNode node, Context context)
    
public  ObjectequalNode(SimpleNode node, Context context)
    
 voiderror(ClassFile cf, String keyword, CompileContext cc)
    
 voiderror(ClassFile cf, String keyword, int[] locals, CompileContext cc)
    
 voiderrorSymbol(ClassFile cf, String keyword, int stringConstant, CompileContext cc)
    
protected  Objectexecute(CompileContext cc, Context context, boolean catchJump)
    
public  ObjectexpressionList(SimpleNode node, Context context)
    
public  ObjectfalseNode(SimpleNode node, Context context)
    
public  ObjectfinallyNode(SimpleNode node, Context context)
    
public  ObjectfloatingNode(SimpleNode node, Context context)
    
public  ObjectforStatement(SimpleNode node, Context context)
    
public  ObjectforeachStatement(SimpleNode node, Context context)
    
public  ObjectfunctionStatement(SimpleNode node, Context context)
    
public  ObjectgeNode(SimpleNode node, Context context)
    
public  ClassGenerationResultgenerateClass(SimpleNode node, Context context)
    
static  ClassGenerationResultgenerateClass(String className, String scriptFile, SimpleNode classDefBody, ClassSpec superclassSpec, ClassSpec[] interfaces, List importNodes, Compiler compiler, CompileContext cc)
    
static  ClassGenerationResultgenerateClass(String className, String scriptFile, List methodSigs, List constructorSigs, List fieldSigs, Set superMethodNames, ClassSpec superclassSpec, ClassSpec[] interfaces, List importNodes, Compiler compiler, CompileContext cc)
    
 voidgenerateClass(SimpleNode classDefBody, String className, ClassSpec superclassSpec, List interfaces, List importNodes, CompileContext cc)
    
static  Stringgensym(Context context)
    
 SimpleNodegetClassDefNode(SimpleNode node, Context cc)
    
static  SimpleNodegetClassDefNode(String className, boolean isInterface, SimpleNode typeNode, SimpleNode classDefBody)
    
static  StringgetClassName(SimpleNode node)
    
static  CodeLoadergetCodeLoader(Context context)
    
static  StringgetPackageName(SimpleNode node)
    
static  voidgetRef(Reference ref, CompileContext cc)
    
public static  SignaturegetterSignature(Class type, String name)
    
public  Objectglobal(SimpleNode node, Context context)
    
public  ObjectgtNode(SimpleNode node, Context context)
    
static  voidhandleClassDefBody(SimpleNode classDefBody, List methodSigs, List constructorSigs, List fieldSigs, Set superMethodNames)
    
static  ConstructorSignatureInfohandleConstructorDef(SimpleNode defNode, Set superMethodNames)
    
static  FieldSignatureInfohandleFieldDef(SimpleNode defNode)
    
static  MethodSignatureInfohandleMethodDef(SimpleNode methodDef, Set superMethodNames)
    
public  ObjectidNode(SimpleNode node, Context context)
    
public  ObjectifStatement(SimpleNode node, Context context)
    
public  ObjectimportNode(SimpleNode node, Context context)
    
 booleaninControl(SimpleNode node, CompileContext cc)
    
public  voidincludeColumnNo(boolean flag)
    
public  voidincludeLineNo(boolean flag)
    
public  voidincludeMainMethod(boolean flag)
    
public  ObjectindexNode(SimpleNode node, Context context)
    
public  ObjectinstanceofExpression(SimpleNode node, Context context)
    
public  ObjectintegerNode(SimpleNode node, Context context)
    
public static  booleanisCompiled(Object obj)
    
static  booleanisConditionalNode(SimpleNode node)
    
static  booleanisConstant(SimpleNode node)
    
static  booleanisLeafFrame(SimpleNode node)
    
public  ObjectleNode(SimpleNode node, Context context)
    
public  ObjectlistElements(SimpleNode node, Context context)
    
public static  ClassloadBytecode(String name, String encodedBytecode, PnutsFunction closure, Context context)
    
public  ObjectlogAndNode(SimpleNode node, Context context)
    
public  ObjectlogNotNode(SimpleNode node, Context context)
    
public  ObjectlogOrNode(SimpleNode node, Context context)
    
public  ObjectltNode(SimpleNode node, Context context)
    
public  ObjectmapNode(SimpleNode node, Context context)
    
static  voidmarkMemberNodeInBeanDef(SimpleNode beanPropertyDef, int targetIndex, int tableIndex, SimpleNode node)
    
public  ObjectmemberNode(SimpleNode node, Context context)
    
public  ObjectmethodDef(SimpleNode node, Context context)
    
public  ObjectmethodNode(SimpleNode node, Context context)
    
public  ObjectmodNode(SimpleNode node, Context context)
    
public  ObjectmultNode(SimpleNode node, Context context)
    
 ObjectmultiAssign(SimpleNode lhs, SimpleNode rhs, Context context)
    
 ObjectmultiAssignFast(SimpleNode lhs, SimpleNode rhs, Context context)
    
public  ObjectnegativeNode(SimpleNode node, Context context)
    
public  ObjectnewNode(SimpleNode node, Context context)
    
public  ObjectnotEqNode(SimpleNode node, Context context)
    
public  ObjectnotNode(SimpleNode node, Context context)
    
public  ObjectnullNode(SimpleNode node, Context context)
    
public  ObjectorNode(SimpleNode node, Context context)
    
static  StringpackageName(SimpleNode node)
    
public  ObjectpackageNode(SimpleNode node, Context context)
    
static  Object[]parseIndex(SimpleNode node)
    
public  ObjectpostDecrNode(SimpleNode node, Context context)
    
public  ObjectpostIncrNode(SimpleNode node, Context context)
    
public  ObjectpreDecrNode(SimpleNode node, Context context)
    
public  ObjectpreIncrNode(SimpleNode node, Context context)
    
 voidpreprocess(SimpleNode node)
    
public  ObjectrangeNode(SimpleNode node, Context context)
    
static  voidrenameIDs(SimpleNode node, String name)
    
 voidresolveClassName(SimpleNode nameNode, CompileContext cc, int ctx)
    
static  SignatureresolveSignature(MethodSignatureInfo methodSig, Context context)
    
static  SignatureresolveSignature(ConstructorSignatureInfo constructorSig, Context context)
    
 voidresolveType(SimpleNode typeNode, CompileContext cc, int ctx)
    
public  ObjectreturnNode(SimpleNode node, Context context)
    
static  booleanscanLeafFrames(SimpleNode node)
    
public  voidsetConstantFolding(boolean flag)
    
public  voidsetTraceMode(boolean mode)
    
public static  SignaturesetterSignature(Class type, String name)
    
public  ObjectshiftArithmeticNode(SimpleNode node, Context context)
    
public  ObjectshiftLeftNode(SimpleNode node, Context context)
    
public  ObjectshiftRightNode(SimpleNode node, Context context)
    
static  String[]split(String s, char delim)
    
public  Objectstart(SimpleNode node, Context context)
    
public  ObjectstartSet(SimpleNode node, Context context)
    
 voidstaticBlock(ClassFile cf, SimpleNode closureNode, CompileContext cc)
    
public  ObjectstaticMemberNode(SimpleNode node, Context context)
    
public  ObjectstaticMethodNode(SimpleNode node, Context context)
    
public  ObjectstringNode(SimpleNode node, Context context)
    
public  ObjectsubtractNode(SimpleNode node, Context context)
    
public  ObjectswitchBlock(SimpleNode node, Context context)
    
public  ObjectswitchStatement(SimpleNode node, Context context)
    
public  Objectternary(SimpleNode node, Context context)
    
public  ObjectthrowNode(SimpleNode node, Context context)
    
public  ObjecttrueNode(SimpleNode node, Context context)
    
public  ObjecttryStatement(SimpleNode node, Context context)
    
 Objectunary(String operator, SimpleNode node, Context context)
    
static  voidupdateMethodSignatureInfo(MethodSignatureInfo sig, String fieldName)
    
static  voidupdateMethodSignatureInfo(List sigs, String fieldName)
    
public  voiduseDynamicProxy(boolean flag)
    
public  ObjectwhileStatement(SimpleNode node, Context context)
    
public  ObjectxorNode(SimpleNode node, Context context)
    
public  ObjectyieldNode(SimpleNode node, Context context)
    

Field Detail
METHOD_FACTORY_FUNCTION
final static String METHOD_FACTORY_FUNCTION(Code)



NO_PARAM
final static Class[] NO_PARAM(Code)



STAR
final static String STAR(Code)



SUPER
final static String SUPER(Code)



THIS
final static String THIS(Code)



YIELD
final static String YIELD(Code)



_constantFolding
boolean _constantFolding(Code)



_includeColumnNo
boolean _includeColumnNo(Code)



_includeLineNo
boolean _includeLineNo(Code)



automatic
boolean automatic(Code)



className
String className(Code)



codeLoaderFactory
static CodeLoaderFactory codeLoaderFactory(Code)



hasBootClassLoader
static boolean hasBootClassLoader(Code)



hasJava2Security
static boolean hasJava2Security(Code)



hasValueOfPrimitive
static boolean hasValueOfPrimitive(Code)



includeMainMethod
boolean includeMainMethod(Code)



privilegedCodeLoaderFactory
static CodeLoaderFactory privilegedCodeLoaderFactory(Code)



runtimeClassName
String runtimeClassName(Code)



sourceFile
String sourceFile(Code)



traceMode
boolean traceMode(Code)



useDynamicProxy
boolean useDynamicProxy(Code)




Constructor Detail
Compiler
public Compiler()(Code)



Compiler
public Compiler(String className)(Code)



Compiler
public Compiler(String className, boolean automatic)(Code)



Compiler
public Compiler(String className, boolean automatic, boolean useDynamicProxy)(Code)




Method Detail
_listElements
public Object _listElements(SimpleNode node, Context context)(Code)



_start
Object _start(SimpleNode node, Context context, boolean catchJump)(Code)



accept
protected Object accept(SimpleNode node, int idx, Context context)(Code)



addConstant
static void addConstant(Object n, Context context)(Code)



addLineInfo
void addLineInfo(CompileContext cc, int ctx, SimpleNode node)(Code)



addNode
public Object addNode(SimpleNode node, Context context)(Code)



andNode
public Object andNode(SimpleNode node, Context context)(Code)



applicationNode
public Object applicationNode(SimpleNode node, Context context)(Code)



arrayType
public Object arrayType(SimpleNode node, Context context)(Code)



assignGlobal
void assignGlobal(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)(Code)



assignId
void assignId(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean mutable, boolean nopop)(Code)



assignIndex
void assignIndex(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)(Code)



assignMember
void assignMember(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)(Code)



assignRange
void assignRange(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc)(Code)



assignStaticMember
void assignStaticMember(ClassFile cf, int id, int ctx, int rhs, SimpleNode lhs, CompileContext cc, boolean nopop)(Code)



assignment
public Object assignment(SimpleNode node, Context context)(Code)



assignmentAA
public Object assignmentAA(SimpleNode node, Context context)(Code)



assignmentDA
public Object assignmentDA(SimpleNode node, Context context)(Code)



assignmentEA
public Object assignmentEA(SimpleNode node, Context context)(Code)



assignmentLA
public Object assignmentLA(SimpleNode node, Context context)(Code)



assignmentMA
public Object assignmentMA(SimpleNode node, Context context)(Code)



assignmentOA
public Object assignmentOA(SimpleNode node, Context context)(Code)



assignmentPA
public Object assignmentPA(SimpleNode node, Context context)(Code)



assignmentRA
public Object assignmentRA(SimpleNode node, Context context)(Code)



assignmentRAA
public Object assignmentRAA(SimpleNode node, Context context)(Code)



assignmentSA
public Object assignmentSA(SimpleNode node, Context context)(Code)



assignmentTA
public Object assignmentTA(SimpleNode node, Context context)(Code)



attachClosure
public static Class attachClosure(Class cls, PnutsFunction closure, Context context)(Code)



beanDef
public Object beanDef(SimpleNode node, Context context)(Code)



binary
Object binary(String operator, SimpleNode node, Context context)(Code)



blockNode
public Object blockNode(SimpleNode node, Context context)(Code)



bool
Object bool(String operator, SimpleNode node, Context context)(Code)



booleanCheck
void booleanCheck(int id, ClassFile cf, Context context)(Code)



breakNode
public Object breakNode(SimpleNode node, Context context)(Code)



buildArray
void buildArray(SimpleNode node, Context context)(Code)



buildClosureNode
static SimpleNode buildClosureNode(List nodes, List fieldSigs, Map typeMap)(Code)



buildFieldDeclaration
static void buildFieldDeclaration(FieldSignatureInfo fsig, List assignmentNodes)(Code)



buildGetterNode
static SimpleNode buildGetterNode(Class type, String name)(Code)



buildList
void buildList(SimpleNode node, Context context)(Code)



buildMethodFunction
static SimpleNode buildMethodFunction(SimpleNode methodDef, MethodSignatureInfo siginfo, Set superMethodNames)(Code)



buildSetterNode
static SimpleNode buildSetterNode(Class type, String name)(Code)



buildSubclassInstance
public static Object buildSubclassInstance(String encodedNode, Context context)(Code)



buildSubclassInstance
public Object buildSubclassInstance(SimpleNode node, Context context)(Code)



canConstantFold
boolean canConstantFold(SimpleNode node)(Code)



capitalize
static String capitalize(String name)(Code)



castExpression
public Object castExpression(SimpleNode node, Context context)(Code)



catchBlock
public Object catchBlock(SimpleNode node, Context context)(Code)



catchNode
public Object catchNode(SimpleNode node, Context context)(Code)



characterNode
public Object characterNode(SimpleNode node, Context context)(Code)



classDef
public Object classDef(SimpleNode node, Context context)(Code)



classDefBody
public Object classDefBody(SimpleNode node, Context context)(Code)



className
public Object className(SimpleNode node, Context context)(Code)



classNode
public Object classNode(SimpleNode node, Context context)(Code)



classScript
public Object classScript(SimpleNode node, Context context)(Code)



collectThisReferences
static Map collectThisReferences(SimpleNode node, Set superMethodNames)(Code)



collectThisReferences
static void collectThisReferences(SimpleNode node, Map frefs, Set superMethodNames)(Code)



compile
public Object compile(Pnuts pnuts, ClassFileHandler handler)(Code)
Compile a parsed expression. The resulting bytecode is handled by a ClassFileHandler.



compile
Object compile(Pnuts pnuts, ClassFileHandler handler, CompileContext cc)(Code)



compile
public Pnuts compile(Pnuts pnuts, Context context)(Code)
Compile a parsed expression.
Parameters:
  pnuts - a parsed expression to be compiled
Parameters:
  context - a context in which the expression is compiled. a Pnuts object



compile
public Pnuts compile(String expression)(Code)
Compile an expression.
Parameters:
  expression - an expression to be compiled. a Pnuts object.



compile
public Pnuts compile(String expression, Context context)(Code)
Compile an expression.
Parameters:
  expression - an expression to be compiled
Parameters:
  context - a context in which the expression is compiled. a Pnuts object.



compile
public Object compile(PnutsFunction pf, ClassFileHandler handler)(Code)
Compile a function group. The resulting bytecode is handled by a ClassFileHandler.
Parameters:
  pf - a function group.
Parameters:
  handler - the resulting bytecode is handle by this object. the result of handler.getResult() method.



compile
public PnutsFunction compile(PnutsFunction pf)(Code)
Compile a function group
Parameters:
  pf - a function group to be compiled. a compiled version of the function group



compile
public PnutsFunction compile(PnutsFunction pf, Context context)(Code)
Compile a function group
Parameters:
  pf - a function group to be compiled.
Parameters:
  context - a context in which the function is compiled. a compiled version of the function group



compileClassScript
public ClassFile compileClassScript(SimpleNode classScriptNode, Object scriptSource, List helperClassFiles)(Code)



compileClassScript
public Object compileClassScript(Reader reader, Object scriptSource, ClassFileHandler handler) throws ParseException, IOException(Code)



compute
void compute(ClassFile cf, int id, int ctx)(Code)



continueNode
public Object continueNode(SimpleNode node, Context context)(Code)



convertIndexNode
static void convertIndexNode(SimpleNode node)(Code)



createCodeLoader
static CodeLoader createCodeLoader(ClassLoader loader, boolean privileged)(Code)
Create a class loader to load compiled code.



createCodeLoader
public static CodeLoader createCodeLoader(ClassLoader loader)(Code)



decapitalize
static String decapitalize(String name)(Code)



defineClass
public Class defineClass(String encodedNode, Context context)(Code)



defineClass
public Class defineClass(SimpleNode node, Context context)(Code)



divideNode
public Object divideNode(SimpleNode node, Context context)(Code)



doStatement
public Object doStatement(SimpleNode node, Context context)(Code)



equalNode
public Object equalNode(SimpleNode node, Context context)(Code)



error
void error(ClassFile cf, String keyword, CompileContext cc)(Code)



error
void error(ClassFile cf, String keyword, int[] locals, CompileContext cc)(Code)



errorSymbol
void errorSymbol(ClassFile cf, String keyword, int stringConstant, CompileContext cc)(Code)



execute
protected Object execute(CompileContext cc, Context context, boolean catchJump)(Code)



expressionList
public Object expressionList(SimpleNode node, Context context)(Code)



falseNode
public Object falseNode(SimpleNode node, Context context)(Code)



finallyNode
public Object finallyNode(SimpleNode node, Context context)(Code)



floatingNode
public Object floatingNode(SimpleNode node, Context context)(Code)



forStatement
public Object forStatement(SimpleNode node, Context context)(Code)



foreachStatement
public Object foreachStatement(SimpleNode node, Context context)(Code)



functionStatement
public Object functionStatement(SimpleNode node, Context context)(Code)



geNode
public Object geNode(SimpleNode node, Context context)(Code)



generateClass
public ClassGenerationResult generateClass(SimpleNode node, Context context)(Code)



generateClass
static ClassGenerationResult generateClass(String className, String scriptFile, SimpleNode classDefBody, ClassSpec superclassSpec, ClassSpec[] interfaces, List importNodes, Compiler compiler, CompileContext cc)(Code)



generateClass
static ClassGenerationResult generateClass(String className, String scriptFile, List methodSigs, List constructorSigs, List fieldSigs, Set superMethodNames, ClassSpec superclassSpec, ClassSpec[] interfaces, List importNodes, Compiler compiler, CompileContext cc)(Code)



generateClass
void generateClass(SimpleNode classDefBody, String className, ClassSpec superclassSpec, List interfaces, List importNodes, CompileContext cc)(Code)



gensym
static String gensym(Context context)(Code)



getClassDefNode
SimpleNode getClassDefNode(SimpleNode node, Context cc)(Code)
Convert 'new type(){...}' to 'class name extends type {...}'



getClassDefNode
static SimpleNode getClassDefNode(String className, boolean isInterface, SimpleNode typeNode, SimpleNode classDefBody)(Code)



getClassName
static String getClassName(SimpleNode node)(Code)



getCodeLoader
static CodeLoader getCodeLoader(Context context)(Code)



getPackageName
static String getPackageName(SimpleNode node)(Code)



getRef
static void getRef(Reference ref, CompileContext cc)(Code)



getterSignature
public static Signature getterSignature(Class type, String name)(Code)



global
public Object global(SimpleNode node, Context context)(Code)



gtNode
public Object gtNode(SimpleNode node, Context context)(Code)



handleClassDefBody
static void handleClassDefBody(SimpleNode classDefBody, List methodSigs, List constructorSigs, List fieldSigs, Set superMethodNames)(Code)



handleConstructorDef
static ConstructorSignatureInfo handleConstructorDef(SimpleNode defNode, Set superMethodNames)(Code)



handleFieldDef
static FieldSignatureInfo handleFieldDef(SimpleNode defNode)(Code)



handleMethodDef
static MethodSignatureInfo handleMethodDef(SimpleNode methodDef, Set superMethodNames)(Code)



idNode
public Object idNode(SimpleNode node, Context context)(Code)



ifStatement
public Object ifStatement(SimpleNode node, Context context)(Code)



importNode
public Object importNode(SimpleNode node, Context context)(Code)



inControl
boolean inControl(SimpleNode node, CompileContext cc)(Code)



includeColumnNo
public void includeColumnNo(boolean flag)(Code)



includeLineNo
public void includeLineNo(boolean flag)(Code)



includeMainMethod
public void includeMainMethod(boolean flag)(Code)



indexNode
public Object indexNode(SimpleNode node, Context context)(Code)



instanceofExpression
public Object instanceofExpression(SimpleNode node, Context context)(Code)



integerNode
public Object integerNode(SimpleNode node, Context context)(Code)



isCompiled
public static boolean isCompiled(Object obj)(Code)
Check if an object is compiled
Parameters:
  obj - an object to be checked true if the object is compiled



isConditionalNode
static boolean isConditionalNode(SimpleNode node)(Code)



isConstant
static boolean isConstant(SimpleNode node)(Code)



isLeafFrame
static boolean isLeafFrame(SimpleNode node)(Code)



leNode
public Object leNode(SimpleNode node, Context context)(Code)



listElements
public Object listElements(SimpleNode node, Context context)(Code)



loadBytecode
public static Class loadBytecode(String name, String encodedBytecode, PnutsFunction closure, Context context)(Code)



logAndNode
public Object logAndNode(SimpleNode node, Context context)(Code)



logNotNode
public Object logNotNode(SimpleNode node, Context context)(Code)



logOrNode
public Object logOrNode(SimpleNode node, Context context)(Code)



ltNode
public Object ltNode(SimpleNode node, Context context)(Code)



mapNode
public Object mapNode(SimpleNode node, Context context)(Code)



markMemberNodeInBeanDef
static void markMemberNodeInBeanDef(SimpleNode beanPropertyDef, int targetIndex, int tableIndex, SimpleNode node)(Code)



memberNode
public Object memberNode(SimpleNode node, Context context)(Code)



methodDef
public Object methodDef(SimpleNode node, Context context)(Code)



methodNode
public Object methodNode(SimpleNode node, Context context)(Code)



modNode
public Object modNode(SimpleNode node, Context context)(Code)



multNode
public Object multNode(SimpleNode node, Context context)(Code)



multiAssign
Object multiAssign(SimpleNode lhs, SimpleNode rhs, Context context)(Code)



multiAssignFast
Object multiAssignFast(SimpleNode lhs, SimpleNode rhs, Context context)(Code)



negativeNode
public Object negativeNode(SimpleNode node, Context context)(Code)



newNode
public Object newNode(SimpleNode node, Context context)(Code)



notEqNode
public Object notEqNode(SimpleNode node, Context context)(Code)



notNode
public Object notNode(SimpleNode node, Context context)(Code)



nullNode
public Object nullNode(SimpleNode node, Context context)(Code)



orNode
public Object orNode(SimpleNode node, Context context)(Code)



packageName
static String packageName(SimpleNode node)(Code)



packageNode
public Object packageNode(SimpleNode node, Context context)(Code)



parseIndex
static Object[] parseIndex(SimpleNode node)(Code)
[base_component_node, [idx_node_0, idx_node_1, ...]]



postDecrNode
public Object postDecrNode(SimpleNode node, Context context)(Code)



postIncrNode
public Object postIncrNode(SimpleNode node, Context context)(Code)



preDecrNode
public Object preDecrNode(SimpleNode node, Context context)(Code)



preIncrNode
public Object preIncrNode(SimpleNode node, Context context)(Code)



preprocess
void preprocess(SimpleNode node)(Code)



rangeNode
public Object rangeNode(SimpleNode node, Context context)(Code)



renameIDs
static void renameIDs(SimpleNode node, String name)(Code)



resolveClassName
void resolveClassName(SimpleNode nameNode, CompileContext cc, int ctx)(Code)



resolveSignature
static Signature resolveSignature(MethodSignatureInfo methodSig, Context context)(Code)



resolveSignature
static Signature resolveSignature(ConstructorSignatureInfo constructorSig, Context context)(Code)



resolveType
void resolveType(SimpleNode typeNode, CompileContext cc, int ctx)(Code)



returnNode
public Object returnNode(SimpleNode node, Context context)(Code)



scanLeafFrames
static boolean scanLeafFrames(SimpleNode node)(Code)



setConstantFolding
public void setConstantFolding(boolean flag)(Code)



setTraceMode
public void setTraceMode(boolean mode)(Code)



setterSignature
public static Signature setterSignature(Class type, String name)(Code)



shiftArithmeticNode
public Object shiftArithmeticNode(SimpleNode node, Context context)(Code)



shiftLeftNode
public Object shiftLeftNode(SimpleNode node, Context context)(Code)



shiftRightNode
public Object shiftRightNode(SimpleNode node, Context context)(Code)



split
static String[] split(String s, char delim)(Code)



start
public Object start(SimpleNode node, Context context)(Code)



startSet
public Object startSet(SimpleNode node, Context context)(Code)



staticBlock
void staticBlock(ClassFile cf, SimpleNode closureNode, CompileContext cc)(Code)



staticMemberNode
public Object staticMemberNode(SimpleNode node, Context context)(Code)



staticMethodNode
public Object staticMethodNode(SimpleNode node, Context context)(Code)



stringNode
public Object stringNode(SimpleNode node, Context context)(Code)



subtractNode
public Object subtractNode(SimpleNode node, Context context)(Code)



switchBlock
public Object switchBlock(SimpleNode node, Context context)(Code)



switchStatement
public Object switchStatement(SimpleNode node, Context context)(Code)



ternary
public Object ternary(SimpleNode node, Context context)(Code)



throwNode
public Object throwNode(SimpleNode node, Context context)(Code)



trueNode
public Object trueNode(SimpleNode node, Context context)(Code)



tryStatement
public Object tryStatement(SimpleNode node, Context context)(Code)



unary
Object unary(String operator, SimpleNode node, Context context)(Code)



updateMethodSignatureInfo
static void updateMethodSignatureInfo(MethodSignatureInfo sig, String fieldName)(Code)



updateMethodSignatureInfo
static void updateMethodSignatureInfo(List sigs, String fieldName)(Code)



useDynamicProxy
public void useDynamicProxy(boolean flag)(Code)



whileStatement
public Object whileStatement(SimpleNode node, Context context)(Code)



xorNode
public Object xorNode(SimpleNode node, Context context)(Code)



yieldNode
public Object yieldNode(SimpleNode node, Context context)(Code)



Methods inherited from java.lang.Runtime
public void addShutdownHook(Thread hook)(Code)(Java Doc)
native public int availableProcessors()(Code)(Java Doc)
public Process exec(String command) throws IOException(Code)(Java Doc)
public Process exec(String command, String[] envp) throws IOException(Code)(Java Doc)
public Process exec(String command, String[] envp, File dir) throws IOException(Code)(Java Doc)
public Process exec(String cmdarray) throws IOException(Code)(Java Doc)
public Process exec(String[] cmdarray, String[] envp) throws IOException(Code)(Java Doc)
public Process exec(String[] cmdarray, String[] envp, File dir) throws IOException(Code)(Java Doc)
public void exit(int status)(Code)(Java Doc)
native public long freeMemory()(Code)(Java Doc)
native public void gc()(Code)(Java Doc)
public InputStream getLocalizedInputStream(InputStream in)(Code)(Java Doc)
public OutputStream getLocalizedOutputStream(OutputStream out)(Code)(Java Doc)
public static Runtime getRuntime()(Code)(Java Doc)
public void halt(int status)(Code)(Java Doc)
public void load(String filename)(Code)(Java Doc)
public void loadLibrary(String libname)(Code)(Java Doc)
native public long maxMemory()(Code)(Java Doc)
public boolean removeShutdownHook(Thread hook)(Code)(Java Doc)
public void runFinalization()(Code)(Java Doc)
public static void runFinalizersOnExit(boolean value)(Code)(Java Doc)
native public long totalMemory()(Code)(Java Doc)
native public void traceInstructions(boolean on)(Code)(Java Doc)
native public void traceMethodCalls(boolean on)(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.