1 /*
   2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.bind.v2.runtime.reflect.opt;
  27 
  28 import com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor;
  29 
  30 /**
  31  * Used by {@link TransducedAccessor} templates.
  32  *
  33  * <p>
  34  * Fields needs to have a distinctive name.
  35  *
  36  * @author Kohsuke Kawaguchi
  37  */
  38 final class Bean {
  39     public boolean f_boolean;
  40     public char f_char;
  41     public byte f_byte;
  42     public short f_short;
  43     int f_int;
  44     public long f_long;
  45     public float f_float;
  46     public double f_double;
  47     /**
  48      * Field of a reference type.
  49      * We need a distinctive type so that it can be easily replaced.
  50      */
  51     public Ref f_ref;
  52 
  53     public boolean get_boolean() { throw new UnsupportedOperationException(); }
  54     public void set_boolean(boolean b) { throw new UnsupportedOperationException(); }
  55 
  56     public char get_char() { throw new UnsupportedOperationException(); }
  57     public void set_char(char b) { throw new UnsupportedOperationException(); }
  58 
  59     public byte get_byte() { throw new UnsupportedOperationException(); }
  60     public void set_byte(byte b) { throw new UnsupportedOperationException(); }
  61 
  62     public short get_short() { throw new UnsupportedOperationException(); }
  63     public void set_short(short b) { throw new UnsupportedOperationException(); }
  64 
  65     public int get_int() { throw new UnsupportedOperationException(); }
  66     public void set_int(int b) { throw new UnsupportedOperationException(); }
  67 
  68     public long get_long() { throw new UnsupportedOperationException(); }
  69     public void set_long(long b) { throw new UnsupportedOperationException(); }
  70 
  71     public float get_float() { throw new UnsupportedOperationException(); }
  72     public void set_float(float b) { throw new UnsupportedOperationException(); }
  73 
  74     public double get_double() { throw new UnsupportedOperationException(); }
  75     public void set_double(double b) { throw new UnsupportedOperationException(); }
  76 
  77     public Ref get_ref() { throw new UnsupportedOperationException(); }
  78     public void set_ref(Ref r) { throw new UnsupportedOperationException(); }
  79 }