public interface AliasedSymbol
Modifier and Type | Interface and Description |
---|---|
static class |
AliasedSymbol.AliasedSymbolImpl |
static class |
AliasedSymbol.NoneAliasedSymbol |
Modifier and Type | Method and Description |
---|---|
void |
addAliasedName(String origName)
|
Set<String> |
getAliasedNames()
Return all aliases for this symbol, i.e.
|
String |
getAliasedString()
|
String |
getName()
Return the current-name, which is the last
renamed-name if issued,
or the original-name . |
String |
getOrigName()
Return the original-name as set at creation.
|
boolean |
hasAliases()
Returns
true if this symbol has aliases, i.e. |
void |
rename(String newName)
Rename this symbol with the given
newName if not equal current-name . |
void rename(String newName)
newName
if not equal current-name
.
Before renaming the current-name
will be added
to the list of aliases
.
while the given newName
will be removed.
Operation will be ignored if newName
is null
.
newName
- the new current-name
, maybe null
void addAliasedName(String origName)
origName
to the list of aliases
if not equal current-name
.
Operation will be ignored if newName
is null
.
origName
- the new alias to be added, maybe null
boolean hasAliases()
true
if this symbol has aliases, i.e. either being renamed
or aliases-added
.
Otherwise false
is being returned.
Set<String> getAliasedNames()
Inclusive original-name
, if renamed
,
Exclusive current-name
.
May return null
or a zero sized Set
for no aliases.
String getOrigName()
String getName()
renamed-name
if issued,
or the original-name
.String getAliasedString()