Java Doc for Compilation.java in  » Scripting » Nice » gnu » expr » 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 » Nice » gnu.expr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.expr.Compilation

Compilation
public class Compilation (Code)


Field Summary
public static  Type[]apply0args
    
public static  Methodapply0method
    
public static  Type[]apply1args
    
public static  Methodapply1method
    
public static  Type[]apply2args
    
public static  Methodapply2method
    
public static  Methodapply3method
    
public static  Methodapply4method
    
public static  MethodapplyCpsMethod
    
public static  Type[]applyNargs
    
public static  MethodapplyNmethod
    
public static  Method[]applymethods
    
public static  FieldargsCallContextField
    
 VariablecallStackContext
     The actual parameter of the current CallFrame.step(CallContext) method.
public static  FieldcallerCallFrameField
    
static  MethodcheckArgCountMethod
    
public  StringclassPrefix
     If non-null: a prefix for generateClassName to prepend to names.
 ClassType[]classes
    
 InitializerclinitChain
     Rembembers stuff to do in of main class.
public  ClassTypecurClass
    
public  LambdaExpcurLambda
    
 PackagecurrentPackage
    
public static  booleandebugPrintFinalExpr
     If true, print out final expressions after optimizations etc.
static  MethoddefineFunctionMethod
    
static  MethoddefineGlobalMethod
    
final static  FieldemptyConstant
    
final static  FieldeofConstant
    
final public static  FieldfalseConstant
    
public static  booleanfewerClasses
     If true, minimize the number of classes generated. Do this even if it makes things a little slower.
 Stringfilename
    
 SwitchStatefswitch
    
 FieldfswitchIndex
    
public  booleangenerateApplet
     True if we should generate an Applet.
public static  booleangenerateAppletDefault
    
public  booleangenerateMain
     True if we should generate a main(String[]) method.
public static  booleangenerateMainDefault
    
public  booleangenerateServlet
     True if we should generate an Servlet.
public static  booleangenerateServletDefault
    
final public static  MethodgetBindingEnvironmentMethod
    
public static  MethodgetCurrentEnvironmentMethod
    
final public static  MethodgetLocationMethod
    
final public static  MethodgetProcedureBindingMethod
    
 booleanimmediate
     True if the compiled result will be immediately loaded.
static  MethodinitIntegerMethod
    
 FieldinstanceField
     Contains "$instance" if the module is static; otherwise null.
final public static  Type[]int1Args
    
public static  ClassTypejavaIntegerType
    
public static  ClassTypejavaStringType
    
 LitTablelitTable
    
 HashtableliteralTable
    
 LiteralliteralsChain
     Rembembers literals to initialize (in ).
 intliteralsCount
    
 intlocalFieldIndex
    
static  MethodlookupGlobalMethod
    
public  ClassTypemainClass
    
public  ModuleExpmainLambda
    
static  MethodmakeListMethod
    
 intmaxSelectorValue
     Used by LambdaExp.getSelectorValue if need to allocate new selector.
public  Methodmethod
     The current method.
 intmethod_counter
    
public static  intmoduleStatic
     If moduleStatic > 0, (module-static #t) is implied by default. If moduleStatic < 0, (module-static #f) is implied by default.
public static  FieldnoArgsField
    
public static  FieldnumArgsCallFrameField
    
 intnumClasses
    
final public static  ArrayTypeobjArrayType
    
public static  FieldpcCallContextField
    
public static  MethodpopCallContextMethod
    
 intposition
    
public static  FieldprocCallContextField
    
static  MethodputGlobalMethod
    
public static  Fieldsaved_pcCallFrameField
    
public static  ClassTypescmBooleanType
    
public static  ClassTypescmKeywordType
    
public static  ClassTypescmListType
    
public static  ClassTypescmNamedType
    
public static  ClassTypescmPairType
    
public static  ClassTypescmSequenceType
    
public static  ClassTypescmSymbolType
    
public static  ClassTypescmUndefinedType
    
final static  MethodsetNameMethod
    
 Stringsource_filename
    
final public static  Type[]string1Arg
    
final public static  Type[]sym1Arg
    
final public static  ArrayTypesymbolArrayType
    
public  VariablethisDecl
    
 ClassTypetopClass
    
public  LambdaExptopLambda
    
final public static  FieldtrueConstant
    
public static  ClassTypetypeApplet
    
public static  ClassTypetypeApplyMethodContainer
    
public static  ClassTypetypeApplyMethodProc
    
public static  ClassTypetypeBinding
    
public static  ClassTypetypeCallContext
    
public static  ClassTypetypeCallFrame
    
public static  ClassTypetypeClassType
    
final public static  ClassTypetypeConsumer
    
public static  ClassTypetypeCpsMethodContainer
    
public static  ClassTypetypeCpsMethodProc
    
public static  ClassTypetypeCpsProcedure
    
public static  ClassTypetypeEnvironment
    
public static  ClassTypetypeInterpreter
    
public static  ClassTypetypeLocation
    
public static  ClassTypetypeMacro
    
public static  ClassTypetypeModuleBody
    
public static  ClassTypetypeModuleMethod
    
public static  ClassTypetypeObject
    
public static  ClassTypetypeObjectType
    
public static  ClassTypetypePair
    
public static  ClassTypetypeProcedure
    
public static  ClassTypetypeProcedure0
    
public static  ClassTypetypeProcedure1
    
public static  ClassTypetypeProcedure2
    
public static  ClassTypetypeProcedure3
    
public static  ClassTypetypeProcedure4
    
public static  ClassType[]typeProcedureArray
    
public static  ClassTypetypeProcedureN
    
public static  ClassTypetypeRunnable
    
public static  ClassTypetypeServlet
    
public static  ClassTypetypeString
    
public static  ClassTypetypeValues
    
final static  FieldundefinedConstant
    
public static  booleanusingCPStyle
    
public static  booleanusingTailCalls
    
final static  FieldvoidConstant
    

Constructor Summary
public  Compilation(ModuleExp lexp, String classname, String prefix, boolean immediate)
     Create a new Compilation environment.
public  Compilation()
    

Method Summary
 ClassTypeaddClass(LambdaExp lexp, ClassType type)
    
final public  ClassTypeaddClass(ModuleExp module)
     Compiles a module to a class.
public  voidaddClass(ClassType new_class)
    
 ClassTypeallocClass(ModuleExp module)
    
public  FieldallocLocalField(Type type, String name)
    
public  voidallocate(Package pkg)
    
public  voidcompile(Package root)
    
public  voidcompileConstant(Object value)
     Emit code to "evaluate" a compile-time constant.
public  voidcompileConstant(Object value, Target target)
    
public static  chardemangle2(char char1, char char2)
     Demangle a three-character mangling starting with '$'.
public static  StringdemangleName(String name)
    
public static  StringdemangleName(String name, boolean reversible)
    
 voiddumpInitializers(Initializer inits, Method initMethod)
    
public  voiderror(char severity, String message)
    
public  voiderror(char severity, String filename, int line, int column, String message)
    
public  voiderror(gnu.text.SourceError err)
    
public  LiteralfindLiteral(Object value)
    
public  ClassTypefindNamedClass(String name)
     Search this Compilation for a ClassType with a given name.
public  voidfreeLocalField(Field field)
    
public  voidgenerate(Package pkg)
     Create a new Compilation environment.
public  voidgenerateApplyMethods(LambdaExp lexp)
     Generate ModuleBody's apply0 ..
public  StringgenerateClassName(String hint)
     Generate an unused class name.
final public  voidgenerateConstructor(LambdaExp lexp)
    
final public  voidgenerateConstructor(ClassType clas, LambdaExp lexp)
    
public  StringgenerateUniqueName(String hint)
     Generate an unused name.
final public  CodeAttrgetCode()
    
final public  MethodgetConstructor(LambdaExp lexp)
    
final public static  MethodgetConstructor(ClassType clas, LambdaExp lexp)
    
public  InterpretergetInterpreter()
    
final public static  ClassTypegetMethodProcType(ClassType modClass)
    
final public  ClassTypegetModuleSuperType(ModuleExp module)
    
public static  booleanisValidJavaName(String name)
    
final public  voidloadCallContext()
     Generate code to push the current CallContext on the JVM stack.
public static  StringmangleName(String name)
    
public static  StringmangleName(String name, boolean reversible)
     Convert a string to a safe Java identifier.
Parameters:
  reversible - if we should use an invertible mapping.
public static  StringmangleNameIfNeeded(String name)
    
public static  booleanusingCPStyle()
    
public  booleanusingTailCalls()
    

Field Detail
apply0args
public static Type[] apply0args(Code)



apply0method
public static Method apply0method(Code)



apply1args
public static Type[] apply1args(Code)



apply1method
public static Method apply1method(Code)



apply2args
public static Type[] apply2args(Code)



apply2method
public static Method apply2method(Code)



apply3method
public static Method apply3method(Code)



apply4method
public static Method apply4method(Code)



applyCpsMethod
public static Method applyCpsMethod(Code)



applyNargs
public static Type[] applyNargs(Code)



applyNmethod
public static Method applyNmethod(Code)



applymethods
public static Method[] applymethods(Code)



argsCallContextField
public static Field argsCallContextField(Code)



callStackContext
Variable callStackContext(Code)
The actual parameter of the current CallFrame.step(CallContext) method.



callerCallFrameField
public static Field callerCallFrameField(Code)



checkArgCountMethod
static Method checkArgCountMethod(Code)



classPrefix
public String classPrefix(Code)
If non-null: a prefix for generateClassName to prepend to names.



classes
ClassType[] classes(Code)



clinitChain
Initializer clinitChain(Code)
Rembembers stuff to do in of main class.



curClass
public ClassType curClass(Code)



curLambda
public LambdaExp curLambda(Code)



currentPackage
Package currentPackage(Code)



debugPrintFinalExpr
public static boolean debugPrintFinalExpr(Code)
If true, print out final expressions after optimizations etc.



defineFunctionMethod
static Method defineFunctionMethod(Code)



defineGlobalMethod
static Method defineGlobalMethod(Code)



emptyConstant
final static Field emptyConstant(Code)



eofConstant
final static Field eofConstant(Code)



falseConstant
final public static Field falseConstant(Code)



fewerClasses
public static boolean fewerClasses(Code)
If true, minimize the number of classes generated. Do this even if it makes things a little slower.



filename
String filename(Code)



fswitch
SwitchState fswitch(Code)



fswitchIndex
Field fswitchIndex(Code)



generateApplet
public boolean generateApplet(Code)
True if we should generate an Applet.



generateAppletDefault
public static boolean generateAppletDefault(Code)



generateMain
public boolean generateMain(Code)
True if we should generate a main(String[]) method.



generateMainDefault
public static boolean generateMainDefault(Code)



generateServlet
public boolean generateServlet(Code)
True if we should generate an Servlet.



generateServletDefault
public static boolean generateServletDefault(Code)



getBindingEnvironmentMethod
final public static Method getBindingEnvironmentMethod(Code)



getCurrentEnvironmentMethod
public static Method getCurrentEnvironmentMethod(Code)



getLocationMethod
final public static Method getLocationMethod(Code)



getProcedureBindingMethod
final public static Method getProcedureBindingMethod(Code)



immediate
boolean immediate(Code)
True if the compiled result will be immediately loaded.



initIntegerMethod
static Method initIntegerMethod(Code)



instanceField
Field instanceField(Code)
Contains "$instance" if the module is static; otherwise null.



int1Args
final public static Type[] int1Args(Code)



javaIntegerType
public static ClassType javaIntegerType(Code)



javaStringType
public static ClassType javaStringType(Code)



litTable
LitTable litTable(Code)



literalTable
Hashtable literalTable(Code)



literalsChain
Literal literalsChain(Code)
Rembembers literals to initialize (in ).



literalsCount
int literalsCount(Code)



localFieldIndex
int localFieldIndex(Code)



lookupGlobalMethod
static Method lookupGlobalMethod(Code)



mainClass
public ClassType mainClass(Code)



mainLambda
public ModuleExp mainLambda(Code)



makeListMethod
static Method makeListMethod(Code)



maxSelectorValue
int maxSelectorValue(Code)
Used by LambdaExp.getSelectorValue if need to allocate new selector.



method
public Method method(Code)
The current method.



method_counter
int method_counter(Code)



moduleStatic
public static int moduleStatic(Code)
If moduleStatic > 0, (module-static #t) is implied by default. If moduleStatic < 0, (module-static #f) is implied by default.



noArgsField
public static Field noArgsField(Code)



numArgsCallFrameField
public static Field numArgsCallFrameField(Code)



numClasses
int numClasses(Code)



objArrayType
final public static ArrayType objArrayType(Code)



pcCallContextField
public static Field pcCallContextField(Code)



popCallContextMethod
public static Method popCallContextMethod(Code)



position
int position(Code)



procCallContextField
public static Field procCallContextField(Code)



putGlobalMethod
static Method putGlobalMethod(Code)



saved_pcCallFrameField
public static Field saved_pcCallFrameField(Code)



scmBooleanType
public static ClassType scmBooleanType(Code)



scmKeywordType
public static ClassType scmKeywordType(Code)



scmListType
public static ClassType scmListType(Code)



scmNamedType
public static ClassType scmNamedType(Code)



scmPairType
public static ClassType scmPairType(Code)



scmSequenceType
public static ClassType scmSequenceType(Code)



scmSymbolType
public static ClassType scmSymbolType(Code)



scmUndefinedType
public static ClassType scmUndefinedType(Code)



setNameMethod
final static Method setNameMethod(Code)



source_filename
String source_filename(Code)



string1Arg
final public static Type[] string1Arg(Code)



sym1Arg
final public static Type[] sym1Arg(Code)



symbolArrayType
final public static ArrayType symbolArrayType(Code)



thisDecl
public Variable thisDecl(Code)



topClass
ClassType topClass(Code)



topLambda
public LambdaExp topLambda(Code)



trueConstant
final public static Field trueConstant(Code)



typeApplet
public static ClassType typeApplet(Code)



typeApplyMethodContainer
public static ClassType typeApplyMethodContainer(Code)



typeApplyMethodProc
public static ClassType typeApplyMethodProc(Code)



typeBinding
public static ClassType typeBinding(Code)



typeCallContext
public static ClassType typeCallContext(Code)



typeCallFrame
public static ClassType typeCallFrame(Code)



typeClassType
public static ClassType typeClassType(Code)



typeConsumer
final public static ClassType typeConsumer(Code)



typeCpsMethodContainer
public static ClassType typeCpsMethodContainer(Code)



typeCpsMethodProc
public static ClassType typeCpsMethodProc(Code)



typeCpsProcedure
public static ClassType typeCpsProcedure(Code)



typeEnvironment
public static ClassType typeEnvironment(Code)



typeInterpreter
public static ClassType typeInterpreter(Code)



typeLocation
public static ClassType typeLocation(Code)



typeMacro
public static ClassType typeMacro(Code)



typeModuleBody
public static ClassType typeModuleBody(Code)



typeModuleMethod
public static ClassType typeModuleMethod(Code)



typeObject
public static ClassType typeObject(Code)



typeObjectType
public static ClassType typeObjectType(Code)



typePair
public static ClassType typePair(Code)



typeProcedure
public static ClassType typeProcedure(Code)



typeProcedure0
public static ClassType typeProcedure0(Code)



typeProcedure1
public static ClassType typeProcedure1(Code)



typeProcedure2
public static ClassType typeProcedure2(Code)



typeProcedure3
public static ClassType typeProcedure3(Code)



typeProcedure4
public static ClassType typeProcedure4(Code)



typeProcedureArray
public static ClassType[] typeProcedureArray(Code)



typeProcedureN
public static ClassType typeProcedureN(Code)



typeRunnable
public static ClassType typeRunnable(Code)



typeServlet
public static ClassType typeServlet(Code)



typeString
public static ClassType typeString(Code)



typeValues
public static ClassType typeValues(Code)



undefinedConstant
final static Field undefinedConstant(Code)



usingCPStyle
public static boolean usingCPStyle(Code)



usingTailCalls
public static boolean usingTailCalls(Code)



voidConstant
final static Field voidConstant(Code)




Constructor Detail
Compilation
public Compilation(ModuleExp lexp, String classname, String prefix, boolean immediate)(Code)
Create a new Compilation environment.
Parameters:
  lexp - top-level function
Parameters:
  classname - name of top-level class to generate
Parameters:
  prefix - prefix to pre-pend to the names of other (non-top) classes
Parameters:
  immediate - true if the classes will be immediately loaded



Compilation
public Compilation()(Code)
Compilation of Packages




Method Detail
addClass
ClassType addClass(LambdaExp lexp, ClassType type)(Code)



addClass
final public ClassType addClass(ModuleExp module)(Code)
Compiles a module to a class.



addClass
public void addClass(ClassType new_class)(Code)



allocClass
ClassType allocClass(ModuleExp module)(Code)



allocLocalField
public Field allocLocalField(Type type, String name)(Code)



allocate
public void allocate(Package pkg)(Code)



compile
public void compile(Package root)(Code)



compileConstant
public void compileConstant(Object value)(Code)
Emit code to "evaluate" a compile-time constant. This is the normal external interface.
Parameters:
  value - the value to be compiled



compileConstant
public void compileConstant(Object value, Target target)(Code)



demangle2
public static char demangle2(char char1, char char2)(Code)
Demangle a three-character mangling starting with '$'. UNFINISHED!



demangleName
public static String demangleName(String name)(Code)



demangleName
public static String demangleName(String name, boolean reversible)(Code)



dumpInitializers
void dumpInitializers(Initializer inits, Method initMethod)(Code)



error
public void error(char severity, String message)(Code)



error
public void error(char severity, String filename, int line, int column, String message)(Code)



error
public void error(gnu.text.SourceError err)(Code)



findLiteral
public Literal findLiteral(Object value)(Code)



findNamedClass
public ClassType findNamedClass(String name)(Code)
Search this Compilation for a ClassType with a given name.
Parameters:
  name - the name of the class desired the matching ClassType, or null if none is found



freeLocalField
public void freeLocalField(Field field)(Code)



generate
public void generate(Package pkg)(Code)
Create a new Compilation environment.
Parameters:
  pkg - the package to compile



generateApplyMethods
public void generateApplyMethods(LambdaExp lexp)(Code)
Generate ModuleBody's apply0 .. applyN methods. Use the applyMethods vector, which contains methods that implement the (public, readable) methods of the current module.



generateClassName
public String generateClassName(String hint)(Code)
Generate an unused class name.
Parameters:
  hint - the requested name (or prefix) a unique class name.



generateConstructor
final public void generateConstructor(LambdaExp lexp)(Code)



generateConstructor
final public void generateConstructor(ClassType clas, LambdaExp lexp)(Code)



generateUniqueName
public String generateUniqueName(String hint)(Code)
Generate an unused name.
Parameters:
  hint - the requested name (or prefix) a unique class name.



getCode
final public CodeAttr getCode()(Code)



getConstructor
final public Method getConstructor(LambdaExp lexp)(Code)



getConstructor
final public static Method getConstructor(ClassType clas, LambdaExp lexp)(Code)



getInterpreter
public Interpreter getInterpreter()(Code)



getMethodProcType
final public static ClassType getMethodProcType(ClassType modClass)(Code)



getModuleSuperType
final public ClassType getModuleSuperType(ModuleExp module)(Code)



isValidJavaName
public static boolean isValidJavaName(String name)(Code)



loadCallContext
final public void loadCallContext()(Code)
Generate code to push the current CallContext on the JVM stack. Assumes that callStackContext has been set for the current function. (Later we should call a routine to get it via the current thread.)



mangleName
public static String mangleName(String name)(Code)



mangleName
public static String mangleName(String name, boolean reversible)(Code)
Convert a string to a safe Java identifier.
Parameters:
  reversible - if we should use an invertible mapping.



mangleNameIfNeeded
public static String mangleNameIfNeeded(String name)(Code)



usingCPStyle
public static boolean usingCPStyle()(Code)



usingTailCalls
public boolean usingTailCalls()(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.