Class Array
java.lang.Object
net.codecrete.windowsapi.metadata.Type
net.codecrete.windowsapi.metadata.Array
-
Field Summary
Fields inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, name, namespace, nativeName, typeDefIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the array length.booleanIndicates if the array has a flexible length (as opposed to variable length).itemType()Gets the type of the array items.Returns the types directly references by this type.voidsetFlexible(boolean isFlexible) Sets if the array has a flexible length (as opposed to variable length).Methods inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, isAnonymous, name, namespace, nativeName, replaceTypes, setDocumentationUrl, setName, typeDefIndex
-
Constructor Details
-
Array
Creates a new instance.- Parameters:
name- the type namenamespace- the type's namespacetypeDefIndex- theTypeDefindexitemType- the type of the array itemsarrayLength- the array length (number of items)
-
-
Method Details
-
itemType
-
arrayLength
public int arrayLength()Gets the array length.For flexible length arrays, this method usually refers 0 or 1, depending on how it is declared in the metadata.
- Returns:
- the number of items
-
isFlexible
public boolean isFlexible()Indicates if the array has a flexible length (as opposed to variable length).- Returns:
trueif the array has flexible length,falseis it has fixed length
-
setFlexible
public void setFlexible(boolean isFlexible) Sets if the array has a flexible length (as opposed to variable length).- Parameters:
isFlexible-trueif the array has flexible length,falseis it has fixed length
-
referencedTypes
Description copied from class:TypeReturns the types directly references by this type.- Overrides:
referencedTypesin classType- Returns:
- Stream of types
-