Package com.jogamp.gluegen.cgram
Class CSymbolTable
java.lang.Object
com.jogamp.gluegen.cgram.CSymbolTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd a node to the table with it's key as the current scope and the nameaddCurrentScopeToName(String name) given a name for a type, append it with the current scope.addScopeToName(String scope, String name) given a name for a type, append it with the given scope.return the current scope as a stringlookup an unscoped name in the table by prepending the current scope.lookupScopedName(String scopedName) lookup a fully scoped name in the symbol tablevoidpopScope()pop the last scope off the scope stack.voidpush a new scope onto the scope stack.removeOneLevelScope(String scopeName) remove one level of scope from name MBZtoString()convert this table to a string
-
Constructor Details
-
CSymbolTable
public CSymbolTable()
-
-
Method Details
-
pushScope
push a new scope onto the scope stack. -
popScope
public void popScope()pop the last scope off the scope stack. -
currentScopeAsString
return the current scope as a string -
addCurrentScopeToName
given a name for a type, append it with the current scope. -
addScopeToName
given a name for a type, append it with the given scope. MBZ -
removeOneLevelScope
remove one level of scope from name MBZ -
add
add a node to the table with it's key as the current scope and the name -
lookupScopedName
lookup a fully scoped name in the symbol table -
lookupNameInCurrentScope
lookup an unscoped name in the table by prepending the current scope. MBZ -- if not found, pop scopes and look again -
toString
convert this table to a string
-