1 /*2 * Copyright 2004 The Apache Software Foundation.3 *4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 *16 * $Header:$17 */18 package org.apache.beehive.netui.compiler.processor;19 20 import org.apache.beehive.netui.compiler.BaseChecker;21 import org.apache.beehive.netui.compiler.Diagnostics;22 import org.apache.beehive.netui.compiler.FormBeanChecker;23 import org.apache.beehive.netui.compiler.CompilerUtils;24 import org.apache.beehive.netui.compiler.BaseGenerator;25 import org.apache.beehive.netui.compiler.typesystem.declaration.AnnotationTypeDeclaration;26 import org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration;27 import org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessorEnvironment;28 29 30 public class FormBeanAnnotationProcessor31 extends BaseAnnotationProcessor32 {33 public FormBeanAnnotationProcessor( AnnotationTypeDeclaration[] annotationTypeDecls, AnnotationProcessorEnvironment env )34 {35 super( annotationTypeDecls, env );36 }37 38 protected BaseChecker getChecker( ClassDeclaration decl, Diagnostics diagnostics )39 {40 if ( CompilerUtils.getAnnotation( decl, FORM_BEAN_TAG_NAME ) != null )41 {42 return new FormBeanChecker( getAnnotationProcessorEnvironment(), diagnostics );43 }44 45 return null;46 }47 48 protected BaseGenerator getGenerator( ClassDeclaration decl, Diagnostics diagnostics )49 {50 return null;51 }52 }53