diff options
author | Robert Godfrey <rgodfrey@apache.org> | 2012-03-10 19:22:10 +0000 |
---|---|---|
committer | Robert Godfrey <rgodfrey@apache.org> | 2012-03-10 19:22:10 +0000 |
commit | 4eaa4e42093e5524d9552d8fa312c214524b6bb4 (patch) | |
tree | a251d57ee92d9c779fe4455c583be0ed90e69a43 /qpid/java/common/Type.tpl | |
parent | 92be7e8f3163c048a8642d2deeaa921bbb65dc9c (diff) | |
download | qpid-python-rg-amqp-1-0-sandbox.tar.gz |
NO-JIRA : AMQP-1-0 sandbox updates - merge from trunkrg-amqp-1-0-sandbox
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/rg-amqp-1-0-sandbox@1299257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/Type.tpl')
-rw-r--r-- | qpid/java/common/Type.tpl | 21 |
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) |