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.javadoc; 16 17 import com.sun.javadoc.ClassDoc; 18 import com.sun.javadoc.ExecutableMemberDoc; 19 import com.sun.javadoc.Parameter; 20 import com.sun.javadoc.ProgramElementDoc; 21 import org.apache.xmlbeans.impl.jam.internal.elements.ElementContext; 22 import org.apache.xmlbeans.impl.jam.provider.JamLogger; 23 import org.apache.xmlbeans.impl.jam.mutable.MAnnotatedElement; 24 import org.apache.xmlbeans.impl.jam.mutable.MClass; 25 26 27 /** 28 * This class is required by JAM so it runs under JDK1.5 29 * Since XmlBeans doesn't require 1.5 in order to run 30 * this stub replaces the real impl. 31 */ 32 public final class JavadocTigerDelegateImpl_150 extends JavadocTigerDelegate 33 { 34 public void init(ElementContext ctx) 35 {} 36 37 public void init(JamLogger logger) 38 {} 39 40 public void populateAnnotationTypeIfNecessary(ClassDoc cd, 41 MClass clazz, 42 JavadocClassBuilder builder) 43 { 44 } 45 46 47 // ======================================================================== 48 // OLD STUFF remove someday 49 50 51 public void extractAnnotations(MAnnotatedElement dest, ProgramElementDoc src) 52 { 53 } 54 55 public void extractAnnotations(MAnnotatedElement dest, 56 ExecutableMemberDoc method, 57 Parameter src) 58 { 59 } 60 61 public boolean isEnum(ClassDoc cd) 62 { 63 return false; // under 1.4, nothing is enum 64 } 65 }