| Modifier and Type | Interface and Description |
|---|---|
interface |
MemberSymbol
A symbol within an aggregate like a class or struct.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseSymbol
An abstract base class used to house common functionality.
|
class |
ClassSymbol
A symbol representing the class.
|
class |
DataAggregateSymbol
A symbol representing a collection of data like a struct or class.
|
class |
FieldSymbol
A field symbol is just a variable that lives inside an aggregate like a
class or struct.
|
class |
FunctionSymbol
This symbol represents a function ala C, not a method ala Java.
|
class |
MethodSymbol
A method symbol is a function that lives within an aggregate/class and has a slot number.
|
class |
ParameterSymbol
A parameter is just kind of variable used as an argument to a
function or method.
|
class |
PrimitiveType |
class |
SymbolWithScope
An abstract base class that houses common functionality for
symbols like classes and functions that are both symbols and scopes.
|
class |
TypeAlias
A "typedef int I;" in C results in a TypeAlias("I", ptrToIntegerType)
|
class |
VariableSymbol |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Symbol> |
BaseScope.symbols
All symbols defined in this scope; can include classes, functions,
variables, or anything else that is a Symbol impl.
|
| Modifier and Type | Method and Description |
|---|---|
Symbol |
Scope.getSymbol(String name)
Get symbol if name defined within this specific scope
|
Symbol |
BaseScope.getSymbol(String name) |
Symbol |
Scope.resolve(String name)
Look up name in this scope or recursively in parent scope if not here
|
Symbol |
BaseScope.resolve(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Symbol> |
Scope.getAllSymbols()
Return all symbols found in all nested scopes.
|
List<? extends Symbol> |
BaseScope.getAllSymbols() |
Map<String,? extends Symbol> |
BaseScope.getMembers() |
List<? extends Symbol> |
Scope.getSymbols()
Return the symbols defined within this scope.
|
List<? extends Symbol> |
BaseScope.getSymbols() |
| Modifier and Type | Method and Description |
|---|---|
void |
Scope.define(Symbol sym)
Define a symbol in this scope, throw IllegalArgumentException
if sym already defined in this scope.
|
void |
DataAggregateSymbol.define(Symbol sym) |
void |
BaseScope.define(Symbol sym) |
void |
SymbolTable.defineGlobalSymbol(Symbol s) |
void |
SymbolTable.definePredefinedSymbol(Symbol s) |
void |
DataAggregateSymbol.setSlotNumber(Symbol sym) |
void |
ClassSymbol.setSlotNumber(Symbol sym) |
Copyright © 2016 ANTLR. All Rights Reserved.