public class ClassSymbol extends DataAggregateSymbol
| Modifier and Type | Field and Description |
|---|---|
protected int |
nextFreeMethodSlot |
protected String |
superClassName |
defNode, nextFreeFieldSlot, typeIndexindex, nameenclosingScope, nestedScopesNotSymbols, symbols| Constructor and Description |
|---|
ClassSymbol(String name) |
| Modifier and Type | Method and Description |
|---|---|
Set<MethodSymbol> |
getDefinedMethods()
Return the set of all methods defined within this class
|
Set<MethodSymbol> |
getMethods()
Return the set of all methods either inherited or not
|
int |
getNumberOfDefinedMethods()
get the number of methods defined specifically in this class
|
int |
getNumberOfMethods()
get the total number of methods visible to this class
|
Scope |
getParentScope()
Where to look next for symbols if just one parent; superclass or enclosing scope.
|
String |
getSuperClassName() |
MethodSymbol |
resolveMethod(String name) |
void |
setSlotNumber(Symbol sym) |
void |
setSuperClass(String superClassName) |
String |
toString() |
define, getDefinedFields, getDefNode, getFields, getMembers, getNumberOfDefinedFields, getNumberOfFields, getSlotNumber, getSymbols, getTypeIndex, setDefNode, setTypeIndexequals, getEnclosingScope, getFullyQualifiedName, getInsertionOrderNumber, getName, getNumberOfSymbols, getQualifiedName, getQualifiedName, getScope, hashCode, setInsertionOrderNumber, setScopegetAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getParentScopes, getSymbol, getSymbolNames, nest, resolve, setEnclosingScope, toQualifierString, toScopeStackString, toTestString, toTestStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getInsertionOrderNumber, getName, getScope, hashCode, setInsertionOrderNumber, setScopegetAllSymbols, getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getParentScopes, getSymbol, getSymbolNames, nest, resolve, setEnclosingScope, toQualifierStringprotected String superClassName
protected int nextFreeMethodSlot
public ClassSymbol(String name)
public Scope getParentScope()
ScopegetParentScope in interface ScopegetParentScope in class SymbolWithScopepublic MethodSymbol resolveMethod(String name)
public void setSuperClass(String superClassName)
public String getSuperClassName()
public void setSlotNumber(Symbol sym)
setSlotNumber in class DataAggregateSymbolpublic Set<MethodSymbol> getDefinedMethods()
public Set<MethodSymbol> getMethods()
public int getNumberOfDefinedMethods()
public int getNumberOfMethods()
Copyright © 2016 ANTLR. All Rights Reserved.