• Using QUERY <object> <method>:
    • The query command gets information about a Java method that can be accessed via the INVOKE command.
    • When only an object is given it will list all available methods. For example:
      nM> query nxm.sys.lib.StringUtil
      ClassName -> nxm.sys.lib.StringUtil
       Constructors - all declared and inherited PUBLIC (1) -> 
        nxm.sys.lib.StringUtil      
       Methods - all declared and inherited PUBLIC (57) -> 
        addToStringBuffer             cleanSplit
        cleanString                   compareVersions
        convertNullsToEmpty           convertNullsToEmpty
        equals                        getAcronym
        getClass                      getClosingFensePos
        getHTMLFor                    getKeyValue
        getKeyValue                   getParsedElement
        ...
      
      Note that some names will appear more than once. This indicates that there is more than one version of this method that can be called (they have different number or type of arguments).
    • When given an object and a name it lists the docs for that method (or methods). For example:
      nM> query nxm.sys.lib.StringUtil padLeft               
      ClassName -> nxm.sys.lib.StringUtil
       Constructors - all declared and inherited PUBLIC (0) -> 
       Methods - all declared and inherited PUBLIC (2) -> 
        ...
        public static final java.lang.String padLeft(java.lang.String str,  int
            newlen,  char padChar)
            Return a new string of padded out to a pre-determined length by adding 
            characters to the left.
            
            Examples:    padLeft("cat", 5, '.') --> "..cat"
            
          Parameters:
            str - The string to pad.
            newlen - The length to pad the string out to.
            padChar - The character to pad the string with.
          Returns:
            The string padded on the left to match the specified length.
          See Also:
            padRight(String,int,char),  padBoth(String,int,char)
       Fields - all declared and inherited PUBLIC (including INTERFACE) (0) -> 
      
  • What it shows:
    • Full documentation for the given Java method.