Class Delegate
java.lang.Object
net.codecrete.windowsapi.metadata.Type
net.codecrete.windowsapi.metadata.Delegate
Delegate type (aka as function pointer or callback functions).
Defines the signature of a function pointer.
-
Field Summary
Fields inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, name, namespace, nativeName, typeDefIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the types directly references by this type.voidreplaceTypes(UnaryOperator<Type> typeReplacements) Replace the types directly referenced by this type with the provided replacements.voidsetSignature(Method signature) Sets the delegate signature.Returns the delegate's signature.Methods inherited from class net.codecrete.windowsapi.metadata.Type
documentationUrl, isAnonymous, name, namespace, nativeName, setDocumentationUrl, setName, typeDefIndex
-
Constructor Details
-
Delegate
-
-
Method Details
-
signature
-
setSignature
Sets the delegate signature.- Parameters:
signature- the signature (as a method)
-
referencedTypes
Description copied from class:TypeReturns the types directly references by this type.- Overrides:
referencedTypesin classType- Returns:
- Stream of types
-
replaceTypes
Description copied from class:TypeReplace the types directly referenced by this type with the provided replacements.The lambda for replacement lookup will return the same type if no replacement is needed.
- Overrides:
replaceTypesin classType- Parameters:
typeReplacements- lambda for looking up the replacement type.
-