jaroslav@879: /** jaroslav@879: * Back 2 Browser Bytecode Translator jaroslav@879: * Copyright (C) 2012 Jaroslav Tulach jaroslav@879: * jaroslav@879: * This program is free software: you can redistribute it and/or modify jaroslav@879: * it under the terms of the GNU General Public License as published by jaroslav@879: * the Free Software Foundation, version 2 of the License. jaroslav@879: * jaroslav@879: * This program is distributed in the hope that it will be useful, jaroslav@879: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@879: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@879: * GNU General Public License for more details. jaroslav@879: * jaroslav@879: * You should have received a copy of the GNU General Public License jaroslav@879: * along with this program. Look for COPYING file in the top folder. jaroslav@879: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@879: */ jaroslav@879: package org.apidesign.bck2brwsr.htmlpage.api; jaroslav@879: jaroslav@879: import java.lang.annotation.ElementType; jaroslav@879: import java.lang.annotation.Retention; jaroslav@879: import java.lang.annotation.RetentionPolicy; jaroslav@879: import java.lang.annotation.Target; jaroslav@879: jaroslav@879: /** Methods in class annotated by {@link Model} or {@link Page} can be jaroslav@879: * annotated by this annotation to signal that they should be available jaroslav@879: * as functions to users of the model classes. jaroslav@879: * jaroslav@879: * @author Jaroslav Tulach jaroslav@879: */ jaroslav@879: @Target(ElementType.METHOD) jaroslav@879: @Retention(RetentionPolicy.SOURCE) jaroslav@879: public @interface OnFunction { jaroslav@879: }