michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.mozglue.generatorannotations; michael@0: michael@0: import java.lang.annotation.Retention; michael@0: import java.lang.annotation.RetentionPolicy; michael@0: michael@0: /** michael@0: * Used to annotate parameters which are optional on the C++ side of the bridge. The annotation is michael@0: * used by the annotation processor to generate the appropriate C++ headers so calls into the Java michael@0: * method all have the optional params set to the default value. michael@0: * The default values are zero for numerical types, false for booleans, "" for strings, and null michael@0: * for all other reference types. michael@0: */ michael@0: @Retention(RetentionPolicy.RUNTIME) michael@0: public @interface OptionalGeneratedParameter {}