优化ELBuilder模块的一些api的范围修饰问题

This commit is contained in:
everywhere.z
2023-10-17 13:15:24 +08:00
parent 40dcc27e4f
commit 1535c7f6d6
2 changed files with 9 additions and 3 deletions

View File

@@ -95,7 +95,10 @@ public abstract class ELWrapper {
* @param tag 标记内容
* @return {@link ELWrapper}
*/
protected abstract ELWrapper tag(String tag);
public ELWrapper tag(String tag){
this.setTag(tag);
return this;
}
/**
* 设置组件的id
@@ -103,7 +106,10 @@ public abstract class ELWrapper {
* @param id 编号
* @return {@link ELWrapper}
*/
protected abstract ELWrapper id(String id);
public ELWrapper id(String id){
this.setId(id);
return this;
}
/**
* 设置表达式data属性

View File

@@ -53,7 +53,7 @@ public class NodeELWrapper extends ELWrapper {
* @return {@link NodeELWrapper}
*/
@Override
protected NodeELWrapper id(String id) {
public NodeELWrapper id(String id) {
this.setId(id);
return this;
}