All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.saxon.transpile.CSharpSimpleEnum Maven / Gradle / Ivy

There is a newer version: 12.5
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy