Class Namespace

java.lang.Object
net.codecrete.windowsapi.metadata.Namespace

public class Namespace extends Object
Namespace of a type, method or constant.

Windows metadata is organized by namespaces.

  • Method Details

    • name

      public String name()
      Gets the namespace name.
      Returns:
      the name
    • types

      public Map<String,Type> types()
      Gets all types in this namespace.
      Returns:
      the types, as a map indexed by type name
    • methods

      public Map<String,Method> methods()
      Gets all methods in this namespace.
      Returns:
      the methods, as a map indexed by method name
    • constants

      public Map<String,ConstantValue> constants()
      Gets all constants in this namespace.
      Returns:
      the constants, as a map indexed by the constants' name
    • addConstant

      public void addConstant(ConstantValue constant)
      Adds a constant to the namespace.
      Parameters:
      constant - the constant
    • toString

      public String toString()
      Overrides:
      toString in class Object