update routeInfo and joinInfo

This commit is contained in:
CaiHQ 2022-06-27 14:31:12 +08:00
parent f74c4f040f
commit f2f1bae2ba
3 changed files with 7 additions and 4 deletions

View File

@ -52,7 +52,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
}
group = "org.bdware.sc"
version = "1.5.6"
version = "1.5.8"
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
task copyLibs(type: Copy) {

View File

@ -7,12 +7,14 @@ import org.bdware.sc.util.JsonUtil;
import java.io.Serializable;
public class JoinInfo implements Serializable {
public String joinRule;
public DefaultJoinRule useDefault;
public String joinFuncName;
public int joinCount;
public String joinCountFuncName;
public static JoinInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
JoinInfo info = new JoinInfo();
info.joinRule = null;
info.useDefault = null;
if (annotationNode.getArgs().size() == 1) {
String str = annotationNode.getArgs().get(0);
info = JsonUtil.fromJson(str, JoinInfo.class);

View File

@ -8,7 +8,8 @@ import java.io.Serializable;
public class RouteInfo implements Serializable {
public DefaultRouteRule useDefault;
// The signature of RouteFunction is
// function myFunc(requester, sourceArg)
public String funcName;
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {