在java中修改和参数 [英] methed and arguments in java
问题描述
现在使用ASM(Java字节码检测库)。在这一个类中有三个参数(String pClassFile,String pName,String pDesc);
但是我得到了错误:B.java:23:错误:找不到符号
ProceduralDependenceGraphMatrix lvPDG = new ProceduralDependenceGraphMatrix.get
PDGByMethodSignature(; C:\\Program Files \\Java \\jdk1.7.0 \ bin \\Myfact.class ; 事实, F());
符号:class getPDGByMethodSignature
位置:class ProceduralDependenceGraphMatrix
这是我的程序
am now using ASM (Java bytecode instrumentation library). in this one class have three argument (String pClassFile,String pName,String pDesc);
but i got error: B.java:23: error: cannot find symbol
ProceduralDependenceGraphMatrix lvPDG = new ProceduralDependenceGraphMatrix.get
PDGByMethodSignature(";C:\\Program Files\\Java\\jdk1.7.0\bin\\Myfact.class";,"fact","f()");
symbol: class getPDGByMethodSignature
location: class ProceduralDependenceGraphMatrix
this is my program
import java.io.FileNotFoundException;
import com.graph.internal.NodeNotFoundException;
import java.io.IOException;
import java.util.Iterator;
import org.objectweb.asm.tree.analysis.AnalyzerException;
import com.graph.element.Node;
import com.graph.pdg.*;
import com.graph.internal.*;
public class A {
public static void main(String[] args) throws FileNotFoundException, IOException, AnalyzerException,NodeNotFoundException
{
ProceduralDependenceGraphMatrix lvPDG = new ProceduralDependenceGraphMatrix.getPDGByMethodSignature("C:\\Program Files\\Java\\jdk1.7.0\\bin\\My\\fact.class","fact","f");
Iterator<Node> lvIterator =lvPDG.controlDependenceBFSIterator();
while (lvIterator.hasNext()) {
Node lvNode = lvIterator.next();
}
}
}
推荐答案
这看起来像您在其他问题上遇到的编译错误 - 根本不是运行时错误
编译程序时是否存在错误您正在使用的库(即包含定义的代码
This looks like the same compile error you had on your other question - not a run-time error at all
Is there something you're doing wrong when compiling your program by not including the library you're using (ie, the code that contains the definition for
ProceduralDependenceGraphMatrix.get
PDGByMethodSignature
ProceduralDependenceGraphMatrix.get
PDGByMethodSignature
)???
) ???
这篇关于在java中修改和参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!