Annotation Type Argument
-
@Target(FIELD) @Retention(RUNTIME) public @interface Argument
Annotates a member variable to be an query argument. Memory Analyzer queries implementingIQueryuse @Argument to annotate query arguments.advice(),Argument.Advice,isMandatory()andflag()can be used to further describe arguments. Heap dump providers using implementations ofIHeapDumpProviderand subclasses ofVmInfocan use @Argument to annotate extra arguments.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Argument.AdviceadviceIf needed, the type of the argument.StringflagThe name of the flag, used for query arguments table and for specifying command line arguments.booleanisMandatoryIndicates whether the argument is mandatory (default)
-
-
-
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.UNFLAGGEDor "none" means for the command line query no flag should be specified before the argument.- Returns:
- the name of the flag
- Default:
- ""
-
-
-
advice
Argument.Advice advice
If needed, the type of the argument.- Returns:
- the type
- Default:
- org.eclipse.mat.query.annotations.Argument.Advice.NONE
-
-