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

com.skillw.asahi.internal.function.lang.java.ExampleAction Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.asahi.internal.function.lang.java;

import com.skillw.asahi.api.annotation.AsahiInfix;
import com.skillw.asahi.api.member.parser.infix.namespacing.BaseInfix;

@AsahiInfix
public class ExampleAction extends BaseInfix {
    /**
     * 使用方法:
     * set str to "123"
     * str printStr
     */
    public ExampleAction() {
        super(String.class, "common");
        this.infix(new String[]{"printStr"}, (context, str) -> {
            System.out.println(str);
            return str;
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy