|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.treeparser.SymbolScope org.prorefactor.treeparser.SymbolScopeRoot
public class SymbolScopeRoot
A ScopeRoot object is created for each compile unit, and it represents the program (topmost) scope. For classes, it is the class scope, but it may also have a super class scope by way of inheritance.
Field Summary |
---|
Fields inherited from class org.prorefactor.treeparser.SymbolScope |
---|
allSymbols, bufferMap, callList, childScopes, fieldLevelWidgetMap, parentScope, rootBlock, rootScope, routineMap, typeMap, unnamedBuffers, variableMap |
Constructor Summary | |
---|---|
SymbolScopeRoot()
|
Method Summary | |
---|---|
void |
addTableDefinitionIfNew(Table table)
|
void |
assignSuper(SymbolScopeRoot superScope)
Assign a super (inherited) class scope to this class scope. |
TableBuffer |
defineTable(java.lang.String name,
int type)
Define a temp or work table. |
FieldBuffer |
defineTableField(java.lang.String name,
TableBuffer buffer)
Define a temp or work table field |
FieldBuffer |
defineTableFieldDelayedAttach(java.lang.String name,
TableBuffer buffer)
Define a temp or work table field. |
SymbolScopeSuper |
generateSymbolScopeSuper()
Generate "bare" symbols and SymbolScopeSuper from this scope's PUBLIC|PROTECTED members. |
java.lang.String |
getClassName()
Valid only if the parse unit is a CLASS. |
TableBuffer |
getLocalTableBuffer(Table table)
|
java.util.Map |
getRoutineMap()
|
Table |
lookupTableDefinition(java.lang.String name)
Lookup a temp or work table definition in this scope. |
protected Field |
lookupUnqualifiedField(java.lang.String name)
Lookup an unqualified temp/work table field name. |
void |
setClassName(java.lang.String s)
|
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class org.prorefactor.treeparser.SymbolScope |
---|
add, add, add, add, add, addScope, defineBuffer, depth, getAllSymbols, getAllSymbols, getAllSymbolsDeep, getAllSymbolsDeep, getBufferSet, getBufferSymbol, getCallList, getChildScopes, getChildScopesDeep, getParentScope, getRootBlock, getRootScope, getUnnamedBuffer, getVariables, hasRoutine, isActiveIn, lookupBuffer, lookupDataset, lookupDatasource, lookupFieldLevelWidget, lookupQuery, lookupRoutine, lookupStream, lookupSymbol, lookupSymbolLocally, lookupTableOrBufferSymbol, lookupTempTable, lookupVariable, lookupWidget, registerCall, setRootBlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SymbolScopeRoot()
Method Detail |
---|
public void addTableDefinitionIfNew(Table table)
public void assignSuper(SymbolScopeRoot superScope)
public TableBuffer defineTable(java.lang.String name, int type)
name
- The name, with mixed case as in DEFINE node.type
- IConstants.ST_TTABLE or IConstants.ST_WTABLE.
public FieldBuffer defineTableField(java.lang.String name, TableBuffer buffer)
public FieldBuffer defineTableFieldDelayedAttach(java.lang.String name, TableBuffer buffer)
public SymbolScopeSuper generateSymbolScopeSuper()
public java.lang.String getClassName()
public TableBuffer getLocalTableBuffer(Table table)
public Table lookupTableDefinition(java.lang.String name)
protected Field lookupUnqualifiedField(java.lang.String name)
public java.util.Map getRoutineMap()
public void setClassName(java.lang.String s)
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
writeXferBytes
in class SymbolScope
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
writeXferSchema
in class SymbolScope
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |