Package gw.internal.gosu.parser
Class CompiledGosuClassSymbolTable
- java.lang.Object
-
- gw.lang.parser.ThreadSafeSymbolTable
-
- gw.internal.gosu.parser.CompiledGosuClassSymbolTable
-
- All Implemented Interfaces:
IStackProvider
,ISymbolTable
public class CompiledGosuClassSymbolTable extends ThreadSafeSymbolTable
-
-
Field Summary
-
Fields inherited from interface gw.lang.parser.IStackProvider
START_POS, SUPER_POS, THIS_POS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ISymbolTable
getSymbolTableForCompilingClass(ICompilableType gsClass)
static Stack
getSymbolTableTraceStack()
static ISymbolTable
getSymTableCtx()
protected ISymbolTable
getThreadLocalSymbolTable()
Get a thread-local symbol table.static CompiledGosuClassSymbolTable
instance()
void
popCompileTimeSymbolTable()
void
popCompileTimeSymbolTable(ICompilableType gsClass)
static ISymbolTable
popSymTableCtx()
void
pushCompileTimeSymbolTable()
void
pushCompileTimeSymbolTable(ISymbolTable symTable)
void
pushCompileTimeSymbolTable(ICompilableType gsClass)
void
pushCompileTimeSymbolTable(ICompilableType gsClass, ISymbolTable symTable)
static void
pushSymTableCtx(ISymbolTable ctx)
-
Methods inherited from class gw.lang.parser.ThreadSafeSymbolTable
clearDefaultSymbolTable, copy, defineCommonSymbols, getDefaultSymbolTable, getNextStackIndex, getNextStackIndexForScope, getPrivateGlobalScopeCount, getScopeCount, getSymbol, getSymbols, getSymbols, getTargetSymbolTable, getThisSymbolFromStackOrMap, getTotalSymbolCount, hasIsolatedScope, isSymbolWithinScope, peekIsolatedScope, peekScope, peekScope, popGlobalScope, popScope, popScope, pushIsolatedScope, pushPrivateGlobalScope, pushScope, pushScope, putSymbol, removeSymbol
-
-
-
-
Method Detail
-
instance
public static CompiledGosuClassSymbolTable instance()
-
getSymTableCtx
public static ISymbolTable getSymTableCtx()
-
pushSymTableCtx
public static void pushSymTableCtx(ISymbolTable ctx)
-
popSymTableCtx
public static ISymbolTable popSymTableCtx()
-
getSymbolTableForCompilingClass
public ISymbolTable getSymbolTableForCompilingClass(ICompilableType gsClass)
-
pushCompileTimeSymbolTable
public void pushCompileTimeSymbolTable(ICompilableType gsClass)
-
pushCompileTimeSymbolTable
public void pushCompileTimeSymbolTable(ICompilableType gsClass, ISymbolTable symTable)
-
pushCompileTimeSymbolTable
public void pushCompileTimeSymbolTable()
-
pushCompileTimeSymbolTable
public void pushCompileTimeSymbolTable(ISymbolTable symTable)
-
popCompileTimeSymbolTable
public void popCompileTimeSymbolTable(ICompilableType gsClass)
-
popCompileTimeSymbolTable
public void popCompileTimeSymbolTable()
-
getThreadLocalSymbolTable
protected ISymbolTable getThreadLocalSymbolTable()
Description copied from class:ThreadSafeSymbolTable
Get a thread-local symbol table. This is typically an instance of StandardSymbol table you maintain in a simple ThreadLocal.- Specified by:
getThreadLocalSymbolTable
in classThreadSafeSymbolTable
-
getSymbolTableTraceStack
public static Stack getSymbolTableTraceStack()
-
-