Stenway Developer Network

Namespace Element

Namespace
  Class
    Name MyClass
  End
  Enum
    Name MyEnum
  End
  Interface
    Name MyInterface
  End
End

LimaScript:

namespace MyLib
  class MyClass
  end
  
  enum MyEnum
  end
  
  interface MyInterface
  end
end

Root Namespace and Sub Namespaces

If no name attribute is present, it is the root namespace.

LimaScriptPackage
  Namespace
  End
  Namespace
    Name Utils
  End
  Namespace
    Name Utils.SpecialUtils
  End
End

LimaScript:

namespace MyLib
end

namespace MyLib\Utils
end

namespace MyLib\Utils.SpecialUtils
end

Access Level of Namespace Entities

AccessLevel attribute with value internal:

Namespace
  Class
    Name MyClass
    Internal true
  End
  Enum
    Name MyEnum
    Internal true
  End
  Interface
    Name MyInterface
    Internal true
  End
End

LimaScript:

namespace MyLib
  internal class MyClass
  end
  
  internal enum MyEnum
  end
  
  internal interface MyInterface
  end
end

Attributes

  • Name (Optional)

Child Elements

Parent Element