Clean up code.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / types / FloatDeclaration.java
index da99c811beedf182b2f65da47ace43cfc135b7eb..293528f2769e27a48ecaac028304fb2843ff35af 100644 (file)
@@ -8,6 +8,7 @@
  *
  * Contributors: Matthew Khouzam - Initial API and implementation
  *******************************************************************************/
+
 package org.eclipse.linuxtools.ctf.core.event.types;
 
 import java.nio.ByteOrder;
@@ -22,18 +23,18 @@ public class FloatDeclaration implements IDeclaration {
     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;
 
     }
 
@@ -41,8 +42,6 @@ public class FloatDeclaration implements IDeclaration {
     // Gettters/Setters/Predicates
     // ------------------------------------------------------------------------
 
-
-
     /**
      * @return the mant
      */
@@ -64,11 +63,9 @@ public class FloatDeclaration implements IDeclaration {
         return byteOrder;
     }
 
-    /**
-     * @return the encoding
-     */
-    public Encoding getEncoding() {
-        return encoding;
+    @Override
+    public long getAlignment() {
+        return alignment;
     }
 
     // ------------------------------------------------------------------------
@@ -76,7 +73,7 @@ public class FloatDeclaration implements IDeclaration {
     // ------------------------------------------------------------------------
 
     @Override
-    public Definition createDefinition(IDefinitionScope definitionScope,
+    public FloatDefinition createDefinition(IDefinitionScope definitionScope,
             String fieldName) {
         return new FloatDefinition(this, definitionScope, fieldName);
     }
This page took 0.024258 seconds and 5 git commands to generate.