00001 package jpl.util;
00002
00003 public class Test2 {
00004 public static boolean boolean_field;
00005 public static char char_field;
00006 public static byte byte_field;
00007 public static short short_field;
00008 public static int int_field;
00009 public static long long_field;
00010 public static float float_field;
00011 public static double double_field;
00012 public static boolean get_boolean_field() {
00013 return boolean_field;
00014 }
00015 public static char get_char_field() {
00016 return char_field;
00017 }
00018 public static byte get_byte_field() {
00019 return byte_field;
00020 }
00021 public static short get_short_field() {
00022 return short_field;
00023 }
00024 public static int get_int_field() {
00025 return int_field;
00026 }
00027 public static long get_long_field() {
00028 return long_field;
00029 }
00030 public static float get_float_field() {
00031 return float_field;
00032 }
00033 public static double get_double_field() {
00034 return double_field;
00035 }
00036
00037 public static void set_boolean_field(boolean v) {
00038 boolean_field = v;
00039 }
00040 public static void set_char_field(char v) {
00041 char_field = v;
00042 }
00043 public static void set_byte_field(byte v) {
00044 byte_field = v;
00045 }
00046 public static void set_short_field(short v) {
00047 short_field = v;
00048 }
00049 public static void set_int_field(int v) {
00050 int_field = v;
00051 }
00052 public static void set_long_field(long v) {
00053 long_field = v;
00054 }
00055 public static void set_float_field(float v) {
00056 float_field = v;
00057 }
00058 public static void set_double_field(double v) {
00059 double_field = v;
00060 }
00061 public static String boolean_field_to_string() {
00062 return "{" + boolean_field + "}";
00063 }
00064 public static String char_field_to_string() {
00065 return "{" + char_field + "}";
00066 }
00067 public static String byte_field_to_string() {
00068 return "{" + byte_field + "}";
00069 }
00070 public static String short_field_to_string() {
00071 return "{" + short_field + "}";
00072 }
00073 public static String int_field_to_string() {
00074 return "{" + int_field + "}";
00075 }
00076 public static String long_field_to_string() {
00077 return "{" + long_field + "}";
00078 }
00079 public static String float_field_to_string() {
00080 return "{" + float_field + "}";
00081 }
00082 public static String double_field_to_string() {
00083 return "{" + double_field + "}";
00084 }
00085 public static String echo_2_and_3(Object a1, int a2, int a3) {
00086 return "a2=" + a2 + ", a3=" + a3;
00087 }
00088 public static String set_bytes_to_7(byte[] a, int offset, int count) {
00089 for (int i = 0; i < count; i++)
00090 a[offset + i] = 7;
00091 return "offset=" + offset + ", count=" + count;
00092 }
00093 public static String lotsa_args(byte[] a, int a1, int a2, int a3, int a4, int a5, int a6) {
00094 return "a1=" + a1 + ", a2=" + a2 + ", a3=" + a3 + ", a4=" + a4 + ", a5=" + a5 + ", a6=" + a6;
00095 }
00096 }