⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagefinderfunction.java

📁 检查Java程序漏洞
💻 JAVA
字号:
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html*/package net.sourceforge.pmd.symboltable;import net.sourceforge.pmd.util.UnaryFunction;import java.util.HashSet;import java.util.List;import java.util.Set;public class ImageFinderFunction implements UnaryFunction {    private Set images = new HashSet();    private NameDeclaration decl;    public ImageFinderFunction(String img) {        images.add(img);    }    public ImageFinderFunction(List imageList) {        images.addAll(imageList);    }    public void applyTo(Object o) {        NameDeclaration nameDeclaration = (NameDeclaration) o;        if (images.contains(nameDeclaration.getImage())) {            decl = nameDeclaration;        }    }    public NameDeclaration getDecl() {        return this.decl;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -