Package com.jogamp.gluegen.cgram.types
Class AliasedSymbol.NoneAliasedSymbol
java.lang.Object
com.jogamp.gluegen.cgram.types.AliasedSymbol.NoneAliasedSymbol
- All Implemented Interfaces:
AliasedSymbol
- Enclosing interface:
- AliasedSymbol
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jogamp.gluegen.cgram.types.AliasedSymbol
AliasedSymbol.AliasedSymbolImpl, AliasedSymbol.NoneAliasedSymbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAliasedName(String origName) Return all aliases for this symbol, i.e.getName()Return the current-name, which is the lastrenamed-nameif issued, or theoriginal-name.Return the original-name as set at creation.booleanReturnstrueif this symbol has aliases, i.e.voidRename this symbol with the givennewNameif not equalcurrent-name.
-
Constructor Details
-
NoneAliasedSymbol
-
-
Method Details
-
rename
Description copied from interface:AliasedSymbolRename this symbol with the givennewNameif not equalcurrent-name.Before renaming the
current-namewill be added to the list ofaliases. while the givennewNamewill be removed.Operation will be ignored if
newNameisnull.- Specified by:
renamein interfaceAliasedSymbol- Parameters:
newName- the newcurrent-name, maybenull
-
addAliasedName
Description copied from interface:AliasedSymbolAdd the givenorigNameto the list ofaliasesif not equalcurrent-name.Operation will be ignored if
newNameisnull.- Specified by:
addAliasedNamein interfaceAliasedSymbol- Parameters:
origName- the new alias to be added, maybenull
-
hasAliases
public boolean hasAliases()Description copied from interface:AliasedSymbolReturnstrueif this symbol has aliases, i.e. either beingrenamedoraliases-added.Otherwise
falseis being returned.- Specified by:
hasAliasesin interfaceAliasedSymbol
-
getAliasedNames
Description copied from interface:AliasedSymbolReturn all aliases for this symbol, i.e. original names, for this symbol.Inclusive
original-name, ifrenamed,Exclusive
current-name.May return
nullor a zero sizedSetfor no aliases.- Specified by:
getAliasedNamesin interfaceAliasedSymbol
-
getOrigName
Description copied from interface:AliasedSymbolReturn the original-name as set at creation.- Specified by:
getOrigNamein interfaceAliasedSymbol
-
getName
Description copied from interface:AliasedSymbolReturn the current-name, which is the lastrenamed-nameif issued, or theoriginal-name.- Specified by:
getNamein interfaceAliasedSymbol
-
getAliasedString
Description copied from interface:AliasedSymbol- Specified by:
getAliasedStringin interfaceAliasedSymbol
-