projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/ArrayDeclaration.java
b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/ArrayDeclaration.java
index 30730c7607c81dfd9b15db8bec5e74bab723cd20..c7ee915ff5a809ff3c121545a5a798bb36b8d396 100644
(file)
--- a/
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/ArrayDeclaration.java
+++ b/
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/ArrayDeclaration.java
@@
-28,6
+28,11
@@
public class ArrayDeclaration implements IDeclaration {
// Constructors
// ------------------------------------------------------------------------
// 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;
public ArrayDeclaration(int length, IDeclaration elemType) {
this.length = length;
this.elemType = elemType;
@@
-37,14
+42,27
@@
public class ArrayDeclaration implements IDeclaration {
// Getters/Setters/Predicates
// ------------------------------------------------------------------------
// Getters/Setters/Predicates
// ------------------------------------------------------------------------
+ /**
+ *
+ * @return the type of element in the array
+ */
public IDeclaration getElementType() {
return elemType;
}
public IDeclaration getElementType() {
return elemType;
}
+ /**
+ *
+ * @return how many elements in the array
+ */
public int getLength() {
return length;
}
public int getLength() {
return length;
}
+ @Override
+ public long getAlignment() {
+ long retVal = this.getElementType().getAlignment();
+ return retVal;
+ }
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
This page took
0.023661 seconds
and
5
git commands to generate.