summaryrefslogtreecommitdiff
path: root/qpid/java/common/Type.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/common/Type.tpl')
-rw-r--r--qpid/java/common/Type.tpl21
1 files changed, 18 insertions, 3 deletions
diff --git a/qpid/java/common/Type.tpl b/qpid/java/common/Type.tpl
index 7f9cfee268..4635c4e367 100644
--- a/qpid/java/common/Type.tpl
+++ b/qpid/java/common/Type.tpl
@@ -56,9 +56,9 @@ for t in types:
out(" $name((byte) $code, $width, $fixed)")
};
- public byte code;
- public int width;
- public boolean fixed;
+ private final byte code;
+ private final int width;
+ private final boolean fixed;
Type(byte code, int width, boolean fixed)
{
@@ -67,6 +67,21 @@ for t in types:
this.fixed = fixed;
}
+ public byte getCode()
+ {
+ return code;
+ }
+
+ public int getWidth()
+ {
+ return width;
+ }
+
+ public boolean isFixed()
+ {
+ return fixed;
+ }
+
public static Type get(byte code)
{
switch (code)