Added JetMethod.flags() to replace kind(), with adding extra functionality (modality and visibility marking).

This commit is contained in:
Evgeny Gerashchenko
2012-06-08 18:42:42 +04:00
parent e8c5677592
commit 12893cec54
8 changed files with 37 additions and 24 deletions
@@ -33,10 +33,18 @@ import java.lang.annotation.Target;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JetMethod {
int KIND_REGULAR = 0;
int KIND_PROPERTY = 1;
int kind() default KIND_REGULAR;
/**
* @deprecated use flags instead
*/
@Deprecated
int kind() default 0;
/**
* Bit 0 - property/not property
*
* @return flags for method
*/
int flags() default 0;
/**
* @return type projections or empty