*
* Contributors: Matthew Khouzam - Initial API and implementation
*******************************************************************************/
+
package org.eclipse.linuxtools.ctf.core.event.types;
import java.nio.ByteOrder;
private final int mant;
private final int exp;
private final ByteOrder byteOrder;
- private final Encoding encoding;
+ private final long alignment;
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
public FloatDeclaration(int exponent, int mantissa, ByteOrder byteOrder,
- Encoding encoding) {
+ long alignment) {
mant = mantissa;
exp = exponent;
this.byteOrder = byteOrder;
- this.encoding = encoding;
+ this.alignment = alignment;
}
// Gettters/Setters/Predicates
// ------------------------------------------------------------------------
-
-
/**
* @return the mant
*/
return byteOrder;
}
- /**
- * @return the encoding
- */
- public Encoding getEncoding() {
- return encoding;
+ @Override
+ public long getAlignment() {
+ return alignment;
}
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
@Override
- public Definition createDefinition(IDefinitionScope definitionScope,
+ public FloatDefinition createDefinition(IDefinitionScope definitionScope,
String fieldName) {
return new FloatDefinition(this, definitionScope, fieldName);
}