net.sf.saxon.transpile.CSharpSimpleEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Saxon-HE Show documentation
Show all versions of Saxon-HE Show documentation
The XSLT and XQuery Processor
package net.sf.saxon.transpile;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotate a Java enum to indicate that a simple mapping to a C# enum should be used.
* This mapping is used essentially for enum's that consist of nothing more that a set of
* enumeration constants.
*
* The flags property is used to indicate that the enumeration constants should be powers of two,
* and the C# class will be annotated [Flags]..
*/
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface CSharpSimpleEnum {
boolean flags() default false;
}