public static class AliasedSymbol.NoneAliasedSymbol extends Object implements AliasedSymbol
AliasedSymbol.AliasedSymbolImpl, AliasedSymbol.NoneAliasedSymbol| Constructor and Description |
|---|
AliasedSymbol.NoneAliasedSymbol(String origName) |
| 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. |
public AliasedSymbol.NoneAliasedSymbol(String origName)
public void rename(String newName)
AliasedSymbolnewName 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.
rename in interface AliasedSymbolnewName - the new current-name, maybe nullpublic void addAliasedName(String origName)
AliasedSymbolorigName to the list of aliases
if not equal current-name.
Operation will be ignored if newName is null.
addAliasedName in interface AliasedSymbolorigName - the new alias to be added, maybe nullpublic boolean hasAliases()
AliasedSymboltrue if this symbol has aliases, i.e. either being renamed
or aliases-added.
Otherwise false is being returned.
hasAliases in interface AliasedSymbolpublic Set<String> getAliasedNames()
AliasedSymbol
Inclusive original-name, if renamed,
Exclusive current-name.
May return null or a zero sized Set for no aliases.
getAliasedNames in interface AliasedSymbolpublic String getOrigName()
AliasedSymbolgetOrigName in interface AliasedSymbolpublic String getName()
AliasedSymbolrenamed-name if issued,
or the original-name.getName in interface AliasedSymbolpublic String getAliasedString()
AliasedSymbolgetAliasedString in interface AliasedSymbol