io.github.vipcxj.jasync.ng.spec.annotations.Async Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasync-spec Show documentation
Show all versions of jasync-spec Show documentation
JAsync implements Async-Await fashion for Java just like es and c#.
This library provide the spec of all public api.
package io.github.vipcxj.jasync.ng.spec.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.METHOD})
public @interface Async {
int BYTE_CODE_OPTION_OFF = 0;
int BYTE_CODE_OPTION_ON = 1;
int BYTE_CODE_OPTION_FRAME = 2;
int BYTE_CODE_OPTION_INDEX = 4;
int BYTE_CODE_OPTION_MAP = 8;
int BYTE_CODE_OPTION_TCB = 16;
int BYTE_CODE_OPTION_FULL_SUPPORT = BYTE_CODE_OPTION_ON
| BYTE_CODE_OPTION_FRAME
| BYTE_CODE_OPTION_INDEX
| BYTE_CODE_OPTION_MAP
| BYTE_CODE_OPTION_TCB;
String debugId() default "";
boolean disabled() default false;
boolean logResultTree() default false;
boolean logResultPosTree() default false;
int logOriginalByteCode() default BYTE_CODE_OPTION_OFF;
int logResultByteCode() default BYTE_CODE_OPTION_OFF;
boolean logLocalsAndStackInfo() default false;
boolean logOriginalAsm() default false;
boolean logResultAsm() default false;
boolean verify() default false;
boolean experiment() default false;
boolean debug() default false;
Method method() default Method.AUTO;
enum Method {
AUTO, INDY, INNER_CLASS
}
}