StarOffice 5.2 API
reverse engineered by classdoc

stardiv.js.comp
Class FunctionNode

java.lang.Object
  |
  +--stardiv.js.comp.BaseNode
        |
        +--stardiv.js.comp.StatementNode
              |
              +--stardiv.js.comp.FunctionNode
All Implemented Interfaces:
stardiv.js.ip.BaseNodeAccess

public synchronized class FunctionNode
extends stardiv.js.comp.StatementNode


Field Summary
protected  stardiv.js.comp.StatementNode aBlockNode
           
protected  java.lang.String aFunctionName
           
protected  stardiv.js.comp.Parser aParser
           
protected  stardiv.tokenizer.Token aSkipTok
           
protected  stardiv.js.ip.SourceFunction aSrcFcn
           
protected  stardiv.js.comp.SourceFunctionHelper aSrcFcnHelper
           
protected  java.lang.String sSrc
           
 
Fields inherited from class stardiv.js.comp.StatementNode
aPredNode, aSuccNode, pLabel
 
Fields inherited from class stardiv.js.comp.BaseNode
iEndPos, iStartPos
 
Constructor Summary
FunctionNode(java.lang.String s1, int i1, int i2, java.lang.String s2, stardiv.memory.Vector v, stardiv.js.comp.StatementNode sn)
           
 
Method Summary
 int addLocalVar(java.lang.String s)
           
 void genCode(stardiv.js.ip.CodeBlock cb, stardiv.js.comp.CodeGenParam cgp)
           
 void genFcnCode(stardiv.js.comp.CodeGenParam cgp, stardiv.js.base.IdentifierPool ip)
           
 stardiv.js.ip.FunctionInfo getFunctionInfo()
           
 int getLocalVarCount()
           
 int getLocalVarId(java.lang.String s)
           
 java.lang.String getLocalVarName(int i)
           
 int getParamVarId(java.lang.String s)
           
 java.lang.String getParamVarName(int i)
           
 stardiv.js.ip.SourceFunction getSourceFunction()
           
 void prepareOnDemand(stardiv.tokenizer.Token t, stardiv.js.comp.Parser p)
           
 void setBlock(stardiv.js.comp.StatementNode sn)
           
 void setSourceFunction(stardiv.js.ip.SourceFunction sf)
           
(package private)  void show(java.io.PrintStream ps)
           
 
Methods inherited from class stardiv.js.comp.StatementNode
getFirst, getLabelName, getLast, getPred, getSource, getSucc, setLabelInfo, setNodes, setPred, setSucc, showList, showTotalList
 
Methods inherited from class stardiv.js.comp.BaseNode
getSrcEndPos, getSrcStartPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aBlockNode

protected stardiv.js.comp.StatementNode aBlockNode

aFunctionName

protected java.lang.String aFunctionName

aParser

protected stardiv.js.comp.Parser aParser

aSkipTok

protected stardiv.tokenizer.Token aSkipTok

aSrcFcn

protected stardiv.js.ip.SourceFunction aSrcFcn

aSrcFcnHelper

protected stardiv.js.comp.SourceFunctionHelper aSrcFcnHelper

sSrc

protected java.lang.String sSrc
Constructor Detail

FunctionNode

public FunctionNode(java.lang.String s1,
                    int i1,
                    int i2,
                    java.lang.String s2,
                    stardiv.memory.Vector v,
                    stardiv.js.comp.StatementNode sn)
Method Detail

addLocalVar

public final int addLocalVar(java.lang.String s)

genCode

public void genCode(stardiv.js.ip.CodeBlock cb,
                    stardiv.js.comp.CodeGenParam cgp)
             throws stardiv.js.base.ParserException

genFcnCode

public void genFcnCode(stardiv.js.comp.CodeGenParam cgp,
                       stardiv.js.base.IdentifierPool ip)
                throws stardiv.js.base.ParserException

getFunctionInfo

public final stardiv.js.ip.FunctionInfo getFunctionInfo()

getLocalVarCount

public final int getLocalVarCount()

getLocalVarId

public final int getLocalVarId(java.lang.String s)

getLocalVarName

public final java.lang.String getLocalVarName(int i)

getParamVarId

public final int getParamVarId(java.lang.String s)

getParamVarName

public final java.lang.String getParamVarName(int i)

getSourceFunction

public final stardiv.js.ip.SourceFunction getSourceFunction()

prepareOnDemand

public final void prepareOnDemand(stardiv.tokenizer.Token t,
                                  stardiv.js.comp.Parser p)

setBlock

public final void setBlock(stardiv.js.comp.StatementNode sn)

setSourceFunction

public final void setSourceFunction(stardiv.js.ip.SourceFunction sf)

show

void show(java.io.PrintStream ps)

StarOffice 5.2 API
reverse engineered by classdoc