Class EnumType
java.lang.Object
net.codecrete.windowsapi.metadata.Type
net.codecrete.windowsapi.metadata.EnumType
Enumeration type.
An enumeration is a collection of related integer constants.
-
Field Summary
Fields inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, name, namespace, nativeName, typeDefIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseType()Gets the type of the enumeration constants.Gets the member with the given name.booleanIndicates if the enumeration constants can be combined as a bitmask, representing multiple flags.members()Gets the enumeration constants.Returns the types directly references by this type.voidsetBaseType(Primitive baseType) Sets the type of the enumeration constants.voidsetMembers(List<Member> members) Sets the enumeration constants.Methods inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, isAnonymous, name, namespace, nativeName, replaceTypes, setDocumentationUrl, setName, typeDefIndex
-
Constructor Details
-
EnumType
Creates a new instance.- Parameters:
name- enumeration namenamespace- enumeration's namespacetypeDefIndex- theTypeDefindexisEnumFlags- indicates if multiple enumeration values can be combined as a bitmask, representing multiple flags.
-
-
Method Details
-
baseType
Gets the type of the enumeration constants.The base type is a primitive integer type.
- Returns:
- the base type
-
setBaseType
Sets the type of the enumeration constants.The base type must be a primitive integer type.
- Parameters:
baseType- the base type
-
members
-
setMembers
-
getMember
-
isEnumFlags
public boolean isEnumFlags()Indicates if the enumeration constants can be combined as a bitmask, representing multiple flags.- Returns:
trueif constants can be combined,falseotherwise
-
referencedTypes
Description copied from class:TypeReturns the types directly references by this type.- Overrides:
referencedTypesin classType- Returns:
- Stream of types
-