Package com.jogamp.gluegen.cgram.types
Class TypeDictionary
java.lang.Object
com.jogamp.gluegen.cgram.types.TypeDictionary
Utility class for recording names of typedefs and structs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) booleancontainsValue(Type value) entrySet()Get the type corresponding to the given name.getEqualSemantics(Type s, JavaConfiguration cfg, boolean skipOpaque) getEqualSemantics1(Type s, JavaConfiguration cfg, boolean skipOpaque) booleanisEmpty()keySet()Get all the names that map to Types.Create a mapping from a type to its name.Remove the mapping from the specified name to its associated type.values()Returns a collection of all the Types in the dictionary that are mapped via typedefs names.
-
Constructor Details
-
TypeDictionary
public TypeDictionary()
-
-
Method Details
-
put
Create a mapping from a type to its name.- Parameters:
name- the name to which the type is definedtype- the type that can be referred to by the specified name.
-
get
Get the type corresponding to the given name. Returns null if no type was found corresponding to the given name. -
getEqualSemantics
-
getEqualSemantics1
-
remove
Remove the mapping from the specified name to its associated type. -
keySet
Get all the names that map to Types.- Returns:
- a Set of Strings that are the typedef names that map to Types in the dictionary.
-
entrySet
-
containsKey
-
containsValue
-
isEmpty
public boolean isEmpty() -
values
Returns a collection of all the Types in the dictionary that are mapped via typedefs names.
-