public interface SymbolDefinition extends ScopeAware
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBodyReference(SymbolReference bodyReference)
Adds a symbol reference to this definition.
|
boolean |
addUsage(SymbolReference usage)
Adds a usage reference to this definition and updates the definition in
that reference.
|
List<SymbolReference> |
getBodyReferences()
Returns the external references contained inside the body of this
definition.
|
int |
getScopeLevel()
Returns the scope level where this definition is specified.
|
String |
getSymbolName()
Gets the symbol name
|
List<SymbolReference> |
getUsages()
Returns the references that represent usages to that definition.
|
void |
setBodyReferences(List<SymbolReference> bodyReferences)
Sets the external references contained inside the body of this
definition.
|
void |
setScopeLevel(int scopeLevel)
Sets the scope level where this definition is specified.
|
void |
setUsages(List<SymbolReference> usages)
Sets the references that represent usages to that definition.
|
getMethodDefinitions, getTypeDefinitions, getVariableDefinitionsList<SymbolReference> getUsages()
void setUsages(List<SymbolReference> usages)
usages - references that represent usages to that definition.boolean addUsage(SymbolReference usage)
usage - reference to this definition.List<SymbolReference> getBodyReferences()
void setBodyReferences(List<SymbolReference> bodyReferences)
bodyReferences - external references contained inside the body of this
definition.boolean addBodyReference(SymbolReference bodyReference)
bodyReference - the reference to add.int getScopeLevel()
void setScopeLevel(int scopeLevel)
scopeLevel - the scope level where this definition is specified.String getSymbolName()
Copyright © 2018. All rights reserved.