diff options
Diffstat (limited to 'src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java')
-rw-r--r-- | src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java b/src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java new file mode 100644 index 000000000..2099901a4 --- /dev/null +++ b/src/share/tools/whitebox/sun/hotspot/parser/DiagnosticCommand.java @@ -0,0 +1,43 @@ +package sun.hotspot.parser; + +public class DiagnosticCommand { + + public enum DiagnosticArgumentType { + JLONG, BOOLEAN, STRING, NANOTIME, STRINGARRAY, MEMORYSIZE + } + + private String name; + private String desc; + private DiagnosticArgumentType type; + private boolean mandatory; + private String defaultValue; + + public DiagnosticCommand(String name, String desc, DiagnosticArgumentType type, + boolean mandatory, String defaultValue) { + this.name = name; + this.desc = desc; + this.type = type; + this.mandatory = mandatory; + this.defaultValue = defaultValue; + } + + public String getName() { + return name; + } + + public String getDesc() { + return desc; + } + + public DiagnosticArgumentType getType() { + return type; + } + + public boolean isMandatory() { + return mandatory; + } + + public String getDefaultValue() { + return defaultValue; + } +} |