/******************************************************************************* * Copyright (c) 2008 Scott Stanchfield. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Scott Stanchfield - initial API and implementation *******************************************************************************/ package com.javadude.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * <p>An annotation that sets a default value for a method parameter.</p> */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.PARAMETER) public @interface Default { /** * The default value to use. If the parameter is a String, the quotes are kept; otherwise, * the quotes are discarded and the contents are treated as Java code. */ String value(); }