47
47
import org .eclipse .jdt .core .dom .SimpleType ;
48
48
import org .eclipse .jdt .core .dom .SingleVariableDeclaration ;
49
49
import org .eclipse .jdt .core .dom .Statement ;
50
- import org .eclipse .jdt .core .dom .StringLiteral ;
51
50
import org .eclipse .jdt .core .dom .SuperConstructorInvocation ;
52
51
import org .eclipse .jdt .core .dom .SuperFieldAccess ;
53
52
import org .eclipse .jdt .core .dom .SuperMethodInvocation ;
@@ -1145,17 +1144,12 @@ public void endVisit(MethodDeclaration node) {
1145
1144
}
1146
1145
}
1147
1146
String [] pipeMethods = new String [] {
1148
- "isPipeLive" ,
1149
- "keepPipeLive" ,
1150
- "pipeDestroy" ,
1151
1147
"pipeSetup" ,
1152
1148
"pipeThrough" ,
1153
1149
"through" ,
1154
- "pipeInit" ,
1155
1150
"pipeMonitoring" ,
1156
1151
"pipeMonitoringInterval" ,
1157
- "setPipeHelper" ,
1158
- "updateStatus"
1152
+ "setPipeHelper"
1159
1153
};
1160
1154
for (int i = 0 ; i < pipeMethods .length ; i ++) {
1161
1155
if (Bindings .isMethodInvoking (mBinding , "net.sf.j2s.ajax.SimplePipeRunnable" , pipeMethods [i ])) {
@@ -1164,6 +1158,11 @@ public void endVisit(MethodDeclaration node) {
1164
1158
}
1165
1159
}
1166
1160
}
1161
+ if (Bindings .isMethodInvoking (mBinding , "net.sf.j2s.ajax.CompoundPipeSession" , "convert" )) {
1162
+ if (getJ2SDocTag (node , "@j2sKeep" ) == null ) {
1163
+ return ;
1164
+ }
1165
+ }
1167
1166
if (mBinding != null ) {
1168
1167
methodDeclareStack .pop ();
1169
1168
}
@@ -1186,17 +1185,12 @@ public boolean visit(MethodDeclaration node) {
1186
1185
}
1187
1186
}
1188
1187
String [] pipeMethods = new String [] {
1189
- "isPipeLive" ,
1190
- "keepPipeLive" ,
1191
- "pipeDestroy" ,
1192
1188
"pipeSetup" ,
1193
1189
"pipeThrough" ,
1194
1190
"through" ,
1195
- "pipeInit" ,
1196
1191
"pipeMonitoring" ,
1197
1192
"pipeMonitoringInterval" ,
1198
- "setPipeHelper" ,
1199
- "updateStatus"
1193
+ "setPipeHelper"
1200
1194
};
1201
1195
for (int i = 0 ; i < pipeMethods .length ; i ++) {
1202
1196
if (Bindings .isMethodInvoking (mBinding , "net.sf.j2s.ajax.SimplePipeRunnable" , pipeMethods [i ])) {
@@ -1205,6 +1199,11 @@ public boolean visit(MethodDeclaration node) {
1205
1199
}
1206
1200
}
1207
1201
}
1202
+ if (Bindings .isMethodInvoking (mBinding , "net.sf.j2s.ajax.CompoundPipeSession" , "convert" )) {
1203
+ if (getJ2SDocTag (node , "@j2sKeep" ) == null ) {
1204
+ return false ;
1205
+ }
1206
+ }
1208
1207
if (mBinding != null ) {
1209
1208
methodDeclareStack .push (mBinding .getKey ());
1210
1209
}
0 commit comments