// Constructors
// ------------------------------------------------------------------------
+ /**
+ * Constructor
+ * @param declaration the parent declaration
+ * @param definitionScope the parent scope
+ * @param fieldName the field name
+ */
public ArrayDefinition(ArrayDeclaration declaration,
IDefinitionScope definitionScope, String fieldName) {
super(definitionScope, fieldName);
this.definitions = definitions;
}
+ /**
+ * Get the element at i
+ * @param i the index (cannot be negative)
+ * @return The element at I, if I > length, null, if I < 0, the method throws an out of bounds exception
+ */
public Definition getElem(int i) {
if (i > definitions.length) {
return null;
return definitions[i];
}
+ @Override
public ArrayDeclaration getDeclaration() {
return declaration;
}