Class Scope
java.lang.Object
net.codecrete.windowsapi.writer.Scope
Manages a scope types, functions, and constants to generate.
Computes the transitive scope by adding indirectly used metadata to the initially specified scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallbackFunctions(Set<String> callbackFunctions) Adds callback functions to this scope.voidaddComInterfaces(Set<String> comInterfaces) Adds COM interfaces to this scope.voidaddConstants(Set<String> constants) Adds constants to this scope.voidAdds enumerations to this scope.voidaddFunctions(Set<String> functions) Adds functions to this scope.voidaddStructs(Set<String> structs) Adds structs and unions to this scope.voidBuilds the transitive scope from the registered types and functions.booleanIndicates if some of the arguments that were set are invalid.
-
Constructor Details
-
Scope
Creates a new scope.- Parameters:
metadata- the metadataeventListener- an event listener to notify about events (in particular validation errors)
-
-
Method Details
-
hasInvalidArguments
public boolean hasInvalidArguments()Indicates if some of the arguments that were set are invalid.- Returns:
trueif arguments are invalid,falseotherwise
-
addStructs
-
addEnums
-
addCallbackFunctions
-
addComInterfaces
-
addConstants
-
addFunctions
-
buildTransitiveScope
public void buildTransitiveScope()Builds the transitive scope from the registered types and functions.Primitive types, pointers, type aliases, and arrays are excluded as they will not result in a Java file.
-