Improve javadoc for ctfAdapter in Tmf.Core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / types / ArrayDeclaration.java
index 30730c7607c81dfd9b15db8bec5e74bab723cd20..c7ee915ff5a809ff3c121545a5a798bb36b8d396 100644 (file)
@@ -28,6 +28,11 @@ public class ArrayDeclaration implements IDeclaration {
     // Constructors
     // ------------------------------------------------------------------------
 
+    /**
+     * Constructor
+     * @param length how many elements in the array
+     * @param elemType what type of element is in the array
+     */
     public ArrayDeclaration(int length, IDeclaration elemType) {
         this.length = length;
         this.elemType = elemType;
@@ -37,14 +42,27 @@ public class ArrayDeclaration implements IDeclaration {
     // Getters/Setters/Predicates
     // ------------------------------------------------------------------------
 
+    /**
+     *
+     * @return the type of element in the array
+     */
     public IDeclaration getElementType() {
         return elemType;
     }
 
+    /**
+     *
+     * @return how many elements in the array
+     */
     public int getLength() {
         return length;
     }
 
+    @Override
+    public long getAlignment() {
+        long retVal = this.getElementType().getAlignment();
+        return retVal;
+    }
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
This page took 0.02965 seconds and 5 git commands to generate.