|
|
@ -24,6 +24,7 @@ import com.fr.report.cell.cellattr.core.group.DSColumn; |
|
|
|
import com.fr.report.cell.cellattr.core.group.FunctionGrouper; |
|
|
|
import com.fr.report.cell.cellattr.core.group.FunctionGrouper; |
|
|
|
import com.fr.report.cell.cellattr.core.group.SelectCount; |
|
|
|
import com.fr.report.cell.cellattr.core.group.SelectCount; |
|
|
|
import com.fr.stable.Filter; |
|
|
|
import com.fr.stable.Filter; |
|
|
|
|
|
|
|
import java.util.Collection; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
@ -48,7 +49,7 @@ public class ContentObjectManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 放置所有需要替换内容的对象 |
|
|
|
* 放置所有需要替换内容的对象 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Map<String, Set<Object>> objectMap; |
|
|
|
private Map<String, Collection<Object>> objectMap; |
|
|
|
|
|
|
|
|
|
|
|
private final Set<String> set = new HashSet<>(); |
|
|
|
private final Set<String> set = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
|
@ -98,14 +99,13 @@ public class ContentObjectManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
public Map<String, Set<Object>> getObjectMap() { |
|
|
|
public Map<String, Collection<Object>> getObjectMap() { |
|
|
|
return objectMap; |
|
|
|
return objectMap; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean needContentTip(Object ob, Set<String> nameSet) { |
|
|
|
public boolean needContentTip(Object ob, Set<String> nameSet) { |
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
|
|
|
|
objectMap = ClassHelper.searchObject(ob, set, ModClassFilter.getInstance()); |
|
|
|
objectMap = ClassHelper.searchObject(ob, set, ModClassFilter.getInstance()); |
|
|
|
for (Map.Entry<String, Set<Object>> entry : objectMap.entrySet()) { |
|
|
|
for (Map.Entry<String, Collection<Object>> entry : objectMap.entrySet()) { |
|
|
|
for (Object o : entry.getValue()) { |
|
|
|
for (Object o : entry.getValue()) { |
|
|
|
for (String name : nameSet) { |
|
|
|
for (String name : nameSet) { |
|
|
|
ContentReplacer contentReplacer = map.get(entry.getKey()); |
|
|
|
ContentReplacer contentReplacer = map.get(entry.getKey()); |
|
|
|