com.oracle.truffle.api.dsl.GenerateNodeFactory

98 阅读1分钟

 

/**
 * Annotate nodes or base classes of nodes to generate factory handlers implementing the
 * {@link NodeFactory} interface. The generated factory handlers class name starts with the source
 * original class and ends with 'Factory'.
 * 
 * @since 0.8 or earlier
 */
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE})
public @interface GenerateNodeFactory {

}

此注解类或基类会生成以Factory为结尾的工厂类