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
|
List<? extends FieldSymbol> |
getFields() |
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 |
getNumberOfFields()
Get the total number of fields visible to this class
|
int |
getNumberOfMethods()
get the total number of methods visible to this class
|
String |
getSuperClassName() |
ClassSymbol |
getSuperClassScope()
Return the ClassSymbol associated with superClassName or null if
superclass is not resolved looking up the enclosing scope chain.
|
List<ClassSymbol> |
getSuperClassScopes()
Multiple superclass or interface implementations and the like...
|
Symbol |
resolve(String name)
Look up name in this scope or recursively in parent scope if not here
|
Symbol |
resolveField(String name)
Look for a field with this name in this scope or any super class.
|
Symbol |
resolveMember(String name)
Look for a member with this name in this scope or any super class.
|
MethodSymbol |
resolveMethod(String name)
Look for a method with this name in this scope or any super class.
|
void |
setSlotNumber(Symbol sym) |
void |
setSuperClass(String superClassName) |
String |
toString() |
define, getDefinedFields, getDefNode, getMembers, getNumberOfDefinedFields, getSlotNumber, getSymbols, getTypeIndex, setDefNode, setTypeIndexequals, getEnclosingScope, getFullyQualifiedName, getInsertionOrderNumber, getName, getNumberOfSymbols, getQualifiedName, getQualifiedName, getScope, hashCode, setInsertionOrderNumber, setScopegetAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getSymbol, getSymbolNames, nest, setEnclosingScope, toQualifierString, toScopeStackString, toTestString, toTestStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getInsertionOrderNumber, getName, getScope, hashCode, setInsertionOrderNumber, setScopegetAllSymbols, getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getSymbol, getSymbolNames, nest, setEnclosingScope, toQualifierStringprotected String superClassName
protected int nextFreeMethodSlot
public ClassSymbol(String name)
public ClassSymbol getSuperClassScope()
public List<ClassSymbol> getSuperClassScopes()
public Symbol resolve(String name)
Scopepublic Symbol resolveMember(String name)
resolveMember in class DataAggregateSymbolpublic Symbol resolveField(String name)
resolveField in class DataAggregateSymbolpublic 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 List<? extends FieldSymbol> getFields()
getFields in class DataAggregateSymbolpublic int getNumberOfDefinedMethods()
public int getNumberOfMethods()
public int getNumberOfFields()
DataAggregateSymbolgetNumberOfFields in class DataAggregateSymbolCopyright © 2017 ANTLR. All Rights Reserved.