Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Getting Help / Command Line / Query
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
   + NeXtMidas Shell   
   + Running NeXtMidas Commands   
   + Results Parameters   
   + Lab 1   
   - Getting Help   
      - Online Documentation   
      - Command Line   
         - Default   
         - Explain   
         - Menu   
         - Query   
      - Help Desk   
   + Lab 2   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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.