public class NameManager.Context extends Object
Constructor and Description |
---|
Context() |
Context(NameManager.Context context) |
Modifier and Type | Method and Description |
---|---|
NameManager.Context |
createNestedContext() |
NameManager.Context |
getContext() |
String |
getSymbolName(Object anObject,
String... nameHints) |
String |
getUniqueName(Object anObject,
String... nameHints)
Return a unique name using some nameHints to suggest preferred names and allocate that name to anObject.
|
String |
toString()
Reserve name for use by anObject.
|
public Context()
public Context(NameManager.Context context)
public NameManager.Context createNestedContext()
public NameManager.Context getContext()
public String getUniqueName(Object anObject, String... nameHints)
If anObject is non-null, any already allocated name is returned rather than allocating another name.
If anObject is null, the returned name is allocated to no object; not to the null value.
If nameHints is null a default name is generated.
public String toString()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.