comparison src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java @ 5978:51612f0c0a79

7148488: Whitebox tests for the Diagnostic Framework Parser Reviewed-by: brutisso, sla, mgerdin
author nloodin
date Thu, 15 Mar 2012 13:37:13 +0100
parents
children
comparison
equal deleted inserted replaced
5947:80fe40862b02 5978:51612f0c0a79
1 package sun.hotspot.parser;
2
3 public class DiagnosticCommand {
4
5 public enum DiagnosticArgumentType {
6 JLONG, BOOLEAN, STRING, NANOTIME, STRINGARRAY, MEMORYSIZE
7 }
8
9 private String name;
10 private String desc;
11 private DiagnosticArgumentType type;
12 private boolean mandatory;
13 private String defaultValue;
14
15 public DiagnosticCommand(String name, String desc, DiagnosticArgumentType type,
16 boolean mandatory, String defaultValue) {
17 this.name = name;
18 this.desc = desc;
19 this.type = type;
20 this.mandatory = mandatory;
21 this.defaultValue = defaultValue;
22 }
23
24 public String getName() {
25 return name;
26 }
27
28 public String getDesc() {
29 return desc;
30 }
31
32 public DiagnosticArgumentType getType() {
33 return type;
34 }
35
36 public boolean isMandatory() {
37 return mandatory;
38 }
39
40 public String getDefaultValue() {
41 return defaultValue;
42 }
43 }