Class MetadataBuilder

java.lang.Object
net.codecrete.windowsapi.winmd.MetadataBuilder

public class MetadataBuilder extends Object
Processes a .winmd file and creates the connected data structure described the types, methods, etc.
  • Method Details

    • load

      public static Metadata load()
      Loads the metadata from the built-in .winmd file.
      Returns:
      the loaded metadata
    • getPrimitiveType

      public Primitive getPrimitiveType(int elementType)
    • getTypeByTypeDef

      public Type getTypeByTypeDef(int typeDefIndex)
    • getTypeByTypeRef

      public Type getTypeByTypeRef(int typeRefIndex, Struct parentType, boolean externalTypeAllowed)
    • getElementType

      public int getElementType(Primitive primitiveType)
    • makePointerFor

      public Pointer makePointerFor(Type type)