Top Description Fields Constructors Methods
com.jogamp.gluegen.cgram.types

public Class TypeDictionary

extends Object
Class Inheritance
Imports
java.util.*, com.jogamp.gluegen.GlueGen, .JavaConfiguration

Utility class for recording names of typedefs and structs.

Field Summary

Modifier and TypeField and Description
private final HashMap<String, Type>
map

Mapping from type name to type.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
containsKey(final String key)

public boolean
containsValue(final Type value)

public Set<Map.Entry<String, Type>>
public Type
get(final String name)

Get the type corresponding to the given name.

public List<Type>
getEqualSemantics(final Type s, final JavaConfiguration cfg, final boolean skipOpaque)

public Type
getEqualSemantics1(final Type s, final JavaConfiguration cfg, final boolean skipOpaque)

public boolean
public Set<String>

Returns:

a Set of Strings that are the typedef names that map to Types in the dictionary.
keySet
()

Get all the names that map to Types.

public Type
put(final String
the name to which the type is defined
name
,
final Type
the type that can be referred to by the specified name.
type
)

Create a mapping from a type to its name.

public Type
remove(final String name)

Remove the mapping from the specified name to its associated type.

public Collection<Type>
values()

Returns a collection of all the Types in the dictionary that are mapped via typedefs names.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapback to summary
private final HashMap<String, Type> map

Mapping from type name to type.

Constructor Detail

TypeDictionaryback to summary
public TypeDictionary()

Method Detail

containsKeyback to summary
public boolean containsKey(final String key)
containsValueback to summary
public boolean containsValue(final Type value)
entrySetback to summary
public Set<Map.Entry<String, Type>> entrySet()
getback to summary
public Type get(final String name)

Get the type corresponding to the given name. Returns null if no type was found corresponding to the given name.

getEqualSemanticsback to summary
public List<Type> getEqualSemantics(final Type s, final JavaConfiguration cfg, final boolean skipOpaque)
getEqualSemantics1back to summary
public Type getEqualSemantics1(final Type s, final JavaConfiguration cfg, final boolean skipOpaque)
isEmptyback to summary
public boolean isEmpty()
keySetback to summary
public Set<String> keySet()

Get all the names that map to Types.

Returns:Set<String>

a Set of Strings that are the typedef names that map to Types in the dictionary.

putback to summary
public Type put(final String name, final Type type)

Create a mapping from a type to its name.

Parameters
name:String

the name to which the type is defined

type:Type

the type that can be referred to by the specified name.

removeback to summary
public Type remove(final String name)

Remove the mapping from the specified name to its associated type.

valuesback to summary
public Collection<Type> values()

Returns a collection of all the Types in the dictionary that are mapped via typedefs names.