public abstract class SymbolWithScope extends BaseScope implements Symbol, Scope
BaseSymbol
because of a lack of multiple inheritance in Java but it is minimal.| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected String |
name |
enclosingScope, nestedScopesNotSymbols, symbols| Constructor and Description |
|---|
SymbolWithScope(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Scope |
getEnclosingScope()
Scope in which this scope defined.
|
String |
getFullyQualifiedName(String scopePathSeparator)
Return the fully qualified name includes all scopes from the root down
to this particular symbol.
|
int |
getInsertionOrderNumber() |
String |
getName()
Often scopes have names like function or class names.
|
int |
getNumberOfSymbols()
Number of symbols in this specific scope
|
Scope |
getParentScope()
Where to look next for symbols if just one parent; superclass or enclosing scope.
|
String |
getQualifiedName()
Return the name prefixed with the name of its enclosing scope
using '.' (dot) as the scope separator.
|
String |
getQualifiedName(String scopePathSeparator)
Return the name prefixed with the name of its enclosing scope.
|
Scope |
getScope() |
int |
hashCode() |
void |
setInsertionOrderNumber(int i) |
void |
setScope(Scope scope) |
define, getAllNestedScopedSymbols, getAllSymbols, getEnclosingPathToRoot, getEnclosingScopeOfType, getMembers, getNestedScopedSymbols, getNestedScopes, getOuterMostEnclosingScope, getParentScopes, getSymbol, getSymbolNames, getSymbols, nest, resolve, setEnclosingScope, toQualifierString, toScopeStackString, toString, toTestString, toTestStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdefine, getAllSymbols, getEnclosingPathToRoot, getNestedScopedSymbols, getNestedScopes, getParentScopes, getSymbol, getSymbolNames, getSymbols, nest, resolve, setEnclosingScope, toQualifierStringprotected final String name
protected int index
public SymbolWithScope(String name)
public String getName()
Scopepublic Scope getParentScope()
ScopegetParentScope in interface ScopegetParentScope in class BaseScopepublic Scope getEnclosingScope()
ScopegetEnclosingScope in interface ScopegetEnclosingScope in class BaseScopepublic String getQualifiedName()
public String getQualifiedName(String scopePathSeparator)
public String getFullyQualifiedName(String scopePathSeparator)
public int getInsertionOrderNumber()
getInsertionOrderNumber in interface Symbolpublic void setInsertionOrderNumber(int i)
setInsertionOrderNumber in interface Symbolpublic int getNumberOfSymbols()
ScopegetNumberOfSymbols in interface ScopegetNumberOfSymbols in class BaseScopepublic boolean equals(Object obj)
Copyright © 2016 ANTLR. All Rights Reserved.