Add the tostring function for debugging purposes to arguments

This commit is contained in:
Zontreck 2024-02-12 03:33:26 -07:00
parent c34294c48c
commit f50fc10318
4 changed files with 35 additions and 1 deletions

View file

@ -12,7 +12,7 @@ public class BooleanArgument extends Argument<Boolean> {
super(name);
this.hasValue = true;
this.value = value;
this.value = true;
}
@Override
@ -24,4 +24,12 @@ public class BooleanArgument extends Argument<Boolean> {
public ArgumentType getType() {
return ArgumentType.BOOLEAN;
}
@Override
public String toString() {
return "BooleanArgument{" +
name + "=true" +
'}';
}
}

View file

@ -18,4 +18,13 @@ public class IntegerArgument extends Argument<Integer> {
public Integer getValue() {
return value;
}
@Override
public String toString() {
return "IntegerArgument{" +
name + "=" +
value +
'}';
}
}

View file

@ -18,4 +18,13 @@ public class LongArgument extends Argument<Long> {
public Long getValue() {
return value;
}
@Override
public String toString() {
return "LongArgument{" +
name + "=" +
value +
'}';
}
}

View file

@ -19,4 +19,12 @@ public class StringArgument extends Argument<String> {
public ArgumentType getType() {
return ArgumentType.STRING;
}
@Override
public String toString() {
return "StringArgument{" +
name + "=" +
value +
'}';
}
}