Annotation Type Argument

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String UNFLAGGED
      A constant for the flag() annotation parameter to show that for a command line query no flag should be specified before the argument.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Argument.Advice advice
      If needed, the type of the argument.
      String flag
      The name of the flag, used for query arguments table and for specifying command line arguments.
      boolean isMandatory
      Indicates whether the argument is mandatory (default)
    • Field Detail

      • UNFLAGGED

        static final String UNFLAGGED
        A constant for the flag() annotation parameter to show that for a command line query no flag should be specified before the argument. For a query dialog the field name without a leading dash is used as the argument name.
        Since:
        1.0
    • Element Detail

      • flag

        String flag
        The name of the flag, used for query arguments table and for specifying command line arguments. The default, "", means use the name of the argument field. UNFLAGGED or "none" means for the command line query no flag should be specified before the argument.
        Returns:
        the name of the flag
        Default:
        ""
      • isMandatory

        boolean isMandatory
        Indicates whether the argument is mandatory (default)
        Returns:
        true of the argument is mandatory
        Default:
        true
      • advice

        Argument.Advice advice
        If needed, the type of the argument.
        Returns:
        the type
        Default:
        org.eclipse.mat.query.annotations.Argument.Advice.NONE