StarOffice 5.2 API
reverse engineered by classdoc

stardiv.js.comp
Class CodeGenerator

java.lang.Object
  |
  +--stardiv.js.comp.CodeGenerator
All Implemented Interfaces:
stardiv.js.ip.CompilerAccess

public synchronized class CodeGenerator
extends java.lang.Object
implements stardiv.js.ip.CompilerAccess


Field Summary
private  stardiv.memory.Vector aErrorLog
           
private  stardiv.js.base.IdentifierPool aIdPool
           
private  stardiv.js.comp.Parser aParser
           
private  stardiv.js.comp.Tokenizer aTokenizer
           
private  boolean bDbgFlag
           
private  boolean bSingleLineIDE
           
 
Constructor Summary
  CodeGenerator()
           
private CodeGenerator(stardiv.js.base.IdentifierPool ip)
           
 
Method Summary
private  void compile(java.lang.String s, stardiv.js.ip.CodeBlock cb, stardiv.js.base.IdentifierPool ip, stardiv.memory.Vector v, stardiv.js.ip.FunctionInfo fi)
           
 void compileFcn(stardiv.js.ip.SourceFunction sf, java.lang.Object o)
           
 void dumpParser(java.lang.String s)
           
private static void dumpProgram(stardiv.js.ip.CodeBlock cb, stardiv.memory.Vector v)
           
 stardiv.js.ip.SourceFunction genAnonymousFunction(java.lang.String s)
           
 stardiv.js.ip.Module genModule(java.lang.String s)
           
 stardiv.js.ip.Module genModuleForEval(java.lang.String s, stardiv.js.ip.SourceFunction sf)
           
private  void genProgCode(stardiv.js.comp.StatementNode sn, stardiv.js.ip.CodeBlock cb, stardiv.js.base.IdentifierPool ip, stardiv.memory.Vector v1, stardiv.memory.Vector v2, stardiv.js.ip.FunctionInfo fi)
           
 void setDbgFlag(boolean b)
           
 void setSingleLineIDEFlag(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aErrorLog

private stardiv.memory.Vector aErrorLog

aIdPool

private stardiv.js.base.IdentifierPool aIdPool

aParser

private stardiv.js.comp.Parser aParser

aTokenizer

private stardiv.js.comp.Tokenizer aTokenizer

bDbgFlag

private boolean bDbgFlag

bSingleLineIDE

private boolean bSingleLineIDE
Constructor Detail

CodeGenerator

public CodeGenerator()

CodeGenerator

private CodeGenerator(stardiv.js.base.IdentifierPool ip)
Method Detail

compile

private final void compile(java.lang.String s,
                           stardiv.js.ip.CodeBlock cb,
                           stardiv.js.base.IdentifierPool ip,
                           stardiv.memory.Vector v,
                           stardiv.js.ip.FunctionInfo fi)
                    throws stardiv.js.base.ParserException

compileFcn

public void compileFcn(stardiv.js.ip.SourceFunction sf,
                       java.lang.Object o)
                throws stardiv.js.base.ParserException
Specified by:
compileFcn in interface stardiv.js.ip.CompilerAccess

dumpParser

public void dumpParser(java.lang.String s)
                throws stardiv.js.base.ParserException

dumpProgram

private static void dumpProgram(stardiv.js.ip.CodeBlock cb,
                                stardiv.memory.Vector v)
                         throws stardiv.js.base.JSException

genAnonymousFunction

public final stardiv.js.ip.SourceFunction genAnonymousFunction(java.lang.String s)
                                                        throws stardiv.js.base.ParserException
Specified by:
genAnonymousFunction in interface stardiv.js.ip.CompilerAccess

genModule

public final stardiv.js.ip.Module genModule(java.lang.String s)
                                     throws stardiv.js.base.ParserException
Specified by:
genModule in interface stardiv.js.ip.CompilerAccess

genModuleForEval

public final stardiv.js.ip.Module genModuleForEval(java.lang.String s,
                                                   stardiv.js.ip.SourceFunction sf)
                                            throws stardiv.js.base.ParserException
Specified by:
genModuleForEval in interface stardiv.js.ip.CompilerAccess

genProgCode

private void genProgCode(stardiv.js.comp.StatementNode sn,
                         stardiv.js.ip.CodeBlock cb,
                         stardiv.js.base.IdentifierPool ip,
                         stardiv.memory.Vector v1,
                         stardiv.memory.Vector v2,
                         stardiv.js.ip.FunctionInfo fi)
                  throws stardiv.js.base.ParserException

setDbgFlag

public final void setDbgFlag(boolean b)

setSingleLineIDEFlag

public final void setSingleLineIDEFlag(boolean b)

StarOffice 5.2 API
reverse engineered by classdoc