blob: 385ba24438603293caeb004fb48dd8ffadbeb2f9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Christian Pontesegger and others.
* 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:
* Christian Pontesegger - initial API and implementation
*******************************************************************************/
package org.eclipse.ease.modules;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation indicating that the annotated method should be wrapped to the target script language. Wrappers add script code that automatically calls the
* annotated Java method.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.FIELD })
public @interface WrapToScript {
/** Delimiter for alias names. */
String DELIMITER = ";";
/**
* Defines alias names for the same command. Names are delimited by ";"
*/
String alias() default "";
}