NETLink`
NETLink`

AllowShortContext

AllowShortContext

is an option to LoadJavaClass (in J/Link) and LoadNETType (in .NET/Link) that specifies whether the class-specific context in which static method and field definitions are created should be placed on $ContextPath.

更多信息和选项

  • To use AllowShortContext, you first need to load .NET/Link using Needs["NETLink`"].
  • For a loaded class "com.sub.Class" containing a static method named mthd:
  • Truestatic methods can be accessed using Class`mthd[] (default)
    Falsestatic methods can be accessed using com`sub`Class`mthd[]
  • Setting AllowShortContext to False can be useful to avoid conflicts with other contexts.