Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl.jam.internal » reflect » [javadoc | source]

    1   /*   Copyright 2004 The Apache Software Foundation
    2    *
    3    *   Licensed under the Apache License, Version 2.0 (the "License");
    4    *   you may not use this file except in compliance with the License.
    5    *   You may obtain a copy of the License at
    6    *
    7    *       http://www.apache.org/licenses/LICENSE-2.0
    8    *
    9    *   Unless required by applicable law or agreed to in writing, software
   10    *   distributed under the License is distributed on an "AS IS" BASIS,
   11    *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12    *   See the License for the specific language governing permissions and
   13    *  limitations under the License.
   14    */
   15   package org.apache.xmlbeans.impl.jam.internal.reflect;
   16   
   17   import org.apache.xmlbeans.impl.jam.JClass;
   18   import org.apache.xmlbeans.impl.jam.mutable.MAnnotatedElement;
   19   import org.apache.xmlbeans.impl.jam.mutable.MAnnotation;
   20   import org.apache.xmlbeans.impl.jam.mutable.MClass;
   21   import org.apache.xmlbeans.impl.jam.mutable.MConstructor;
   22   import org.apache.xmlbeans.impl.jam.mutable.MField;
   23   import org.apache.xmlbeans.impl.jam.mutable.MMember;
   24   import org.apache.xmlbeans.impl.jam.mutable.MParameter;
   25   
   26   import java.lang.reflect.Constructor;
   27   import java.lang.reflect.Field;
   28   import java.lang.reflect.InvocationTargetException;
   29   import java.lang.reflect.Method;
   30   import java.lang.reflect.Modifier;
   31   
   32   
   33   /**
   34    * This class is required by JAM so it runs under JDK1.5
   35    * Since XmlBeans doesn't require 1.5 in order to run
   36    * this stub replaces the real impl.
   37    */
   38   public final class ReflectTigerDelegateImpl_150 extends ReflectTigerDelegate
   39   {
   40     // ========================================================================
   41     // Reflect15Delegate implementation
   42   
   43       public void populateAnnotationTypeIfNecessary(Class cd,
   44                                                   MClass clazz,
   45                                                   ReflectClassBuilder builder)
   46       {
   47       }
   48   
   49       public void extractAnnotations(MMember dest, Method src)
   50       {
   51       }
   52   
   53       public void extractAnnotations(MConstructor dest, Constructor src)
   54       {
   55       }
   56   
   57       public void extractAnnotations(MField dest, Field src)
   58       {
   59       }
   60   
   61       public void extractAnnotations(MClass dest, Class src)
   62       {
   63       }
   64   
   65       public void extractAnnotations(MParameter dest, Method src,
   66                                    int paramNum)
   67       {
   68       }
   69   
   70       public void extractAnnotations(MParameter dest, Constructor src,
   71                                    int paramNum)
   72       {
   73       }
   74   
   75       public boolean isEnum(Class clazz)
   76       {   return false; }
   77   
   78       public Constructor getEnclosingConstructor(Class clazz)
   79       {
   80           return null; // JDK1.4 doesn't support this
   81       }
   82   
   83       public Method getEnclosingMethod(Class clazz)
   84       {
   85           return null; // JDK1.4 doesn't support this
   86       }
   87   }

Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl.jam.internal » reflect » [javadoc | source]