diff options
| author | Ben Culkin <scorpress@gmail.com> | 2021-03-13 09:11:12 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2021-03-13 09:11:12 -0500 |
| commit | 7efb7b9e997e0977c8343718cd8b5149805ea57b (patch) | |
| tree | 869ba045f07a6c5aa8a9c6d388941cc5a4862192 /dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java | |
| parent | c7c7503bd4a31e88924514d8e6fd4885fcfac042 (diff) | |
Add more documentation
Also, changed my mind on the way DiePool and its implementations should
be structured. The implementations go in the die pool file as internal
classes, because nobody should particularly care the specifics about
their die pool, only that it does what it says it should
Diffstat (limited to 'dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java')
| -rw-r--r-- | dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java b/dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java index 66e14ad..1a54ca5 100644 --- a/dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java +++ b/dice/src/example/java/bjc/dicelang/neodice/statements/ArrayStatementValue.java @@ -4,10 +4,24 @@ import static bjc.dicelang.neodice.statements.StatementValue.Type.*; import java.util.*; +/** + * A statement value which represents an array of statement values. + * @author Ben Culkin + * + * @param <ElementType> The contained type of value. + */ public class ArrayStatementValue<ElementType extends StatementValue> extends StatementValue { - public final Type elementType; + /** The type of the contained values. */ + public final Type elementType; + /** The contained values. */ public final ElementType[] values; + /** + * Create a new array statement value. + * + * @param elementType The type of the contained values. + * @param values The contained values. + */ @SafeVarargs public ArrayStatementValue(Type elementType, ElementType... values) { super(ARRAY); |
