org.prorefactor.treeparser
Class SymbolScopeSuper

java.lang.Object
  extended by org.prorefactor.treeparser.SymbolScope
      extended by org.prorefactor.treeparser.SymbolScopeRoot
          extended by org.prorefactor.treeparser.SymbolScopeSuper
All Implemented Interfaces:
Xferable

public class SymbolScopeSuper
extends SymbolScopeRoot

Contains skeleton symbols for purposes of inheritance. Since these are cached indefinately, they never have references to syntax tree nodes or child scopes. Is always generated either from a SymbolScopeRoot, or else from another SymbolScopeSuper when a copy is being made.


Field Summary
static java.util.Map<java.lang.String,SymbolScopeSuper> cache
          TreeParser01 stores and looks up SymbolScopeSuper objects in this cache, which by default is a synchronizedMap wrapped org.prorefactor.util.Cache object with a maximum cache size of 50.
 
Fields inherited from class org.prorefactor.treeparser.SymbolScope
allSymbols, bufferMap, callList, childScopes, fieldLevelWidgetMap, parentScope, rootBlock, rootScope, routineMap, typeMap, unnamedBuffers, variableMap
 
Constructor Summary
SymbolScopeSuper()
          Only to be used for persistence/serialization.
 
Method Summary
 SymbolScope addScope()
          INVALID This method is illegal for super scopes.
 
Methods inherited from class org.prorefactor.treeparser.SymbolScopeRoot
addTableDefinitionIfNew, assignSuper, defineTable, defineTableField, defineTableFieldDelayedAttach, generateSymbolScopeSuper, getClassName, getLocalTableBuffer, getRoutineMap, lookupTableDefinition, lookupUnqualifiedField, setClassName, writeXferBytes, writeXferSchema
 
Methods inherited from class org.prorefactor.treeparser.SymbolScope
add, add, add, add, add, 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
 

Field Detail

cache

public static java.util.Map<java.lang.String,SymbolScopeSuper> cache
TreeParser01 stores and looks up SymbolScopeSuper objects in this cache, which by default is a synchronizedMap wrapped org.prorefactor.util.Cache object with a maximum cache size of 50. It is safe for any application to completely override this. (Well, of course, be careful that you provide some mechanism for keeping the cache from growing too large.) Since it's just a cache, it's completely exposed. Just don't make it null. :)

Constructor Detail

SymbolScopeSuper

public SymbolScopeSuper()
Only to be used for persistence/serialization.

Method Detail

addScope

public SymbolScope addScope()
INVALID This method is illegal for super scopes. Super scopes are cached indefinately, and as such, should never have references to child scopes, ASTs, etc.

Overrides:
addScope in class SymbolScope


Copyright © 2008 Joanju Software. All Rights Reserved.