|
|
@@ -38,6 +38,18 @@ public class Ctrl {
|
|
|
private int assignmentType = WISDOM_ASSIGNMENT;
|
|
|
private boolean nullSafe = false;
|
|
|
|
|
|
+ // 附加对象,可穿透 Scope 传递数据,可传递任意类型数据
|
|
|
+ public Object attachment;
|
|
|
+
|
|
|
+ public void setAttachment(Object attachment) {
|
|
|
+ this.attachment = attachment;
|
|
|
+ }
|
|
|
+
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ public <T> T getAttachment() {
|
|
|
+ return (T)attachment;
|
|
|
+ }
|
|
|
+
|
|
|
public boolean isJump() {
|
|
|
return jump != JUMP_NONE;
|
|
|
}
|