org.eclipse.mat.query.annotations
Annotation Type Argument


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Argument

Annotates a member variable to be an query argument.


Optional Element Summary
 Argument.Advice advice
          If needed, the type of the argument.
 java.lang.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)
 

flag

public abstract java.lang.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.

Default:
""

isMandatory

public abstract boolean isMandatory
Indicates whether the argument is mandatory (default)

Default:
true

advice

public abstract Argument.Advice advice
If needed, the type of the argument.

Default:
org.eclipse.mat.query.annotations.Argument.Advice.NONE