本文整理汇总了Java中edu.umd.cs.findbugs.ba.MethodBytecodeSet类的典型用法代码示例。如果您正苦于以下问题:Java MethodBytecodeSet类的具体用法?Java MethodBytecodeSet怎么用?Java MethodBytecodeSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MethodBytecodeSet类属于edu.umd.cs.findbugs.ba包,在下文中一共展示了MethodBytecodeSet类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: analyze
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
public MethodBytecodeSet analyze(IAnalysisCache analysisCache, MethodDescriptor descriptor) throws CheckedAnalysisException {
Method method = analysisCache.getMethodAnalysis(Method.class, descriptor);
Code code = method.getCode();
if (code == null) {
return null;
}
byte[] instructionList = code.getCode();
// Create callback
UnpackedBytecodeCallback callback = new UnpackedBytecodeCallback(instructionList.length);
// Scan the method.
BytecodeScanner scanner = new BytecodeScanner();
scanner.scan(instructionList, callback);
UnpackedCode unpackedCode = callback.getUnpackedCode();
MethodBytecodeSet result = null;
if (unpackedCode != null) {
result = unpackedCode.getBytecodeSet();
}
return result;
}
示例2: registerWith
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
@Override
public void registerWith(IAnalysisCache analysisCache) {
analysisCache.registerMethodAnalysisEngine(MethodBytecodeSet.class, this);
}
示例3: UnpackedCode
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
public UnpackedCode(MethodBytecodeSet bytecodeSet, short[] offsetToBytecodeMap) {
this.bytecodeSet = bytecodeSet;
this.offsetToBytecodeMap = offsetToBytecodeMap;
}
示例4: getBytecodeSet
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
/**
* @return Returns the bytecodeSet.
*/
public MethodBytecodeSet getBytecodeSet() {
return bytecodeSet;
}
示例5: UnpackedBytecodeCallback
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
public UnpackedBytecodeCallback(int codeSize) {
this.bytecodeSet = new MethodBytecodeSet();
this.offsetToOpcodeMap = new short[codeSize];
}
示例6: MethodBytecodeSetFactory
import edu.umd.cs.findbugs.ba.MethodBytecodeSet; //导入依赖的package包/类
/**
* @param analysisName
* @param analysisClass
*/
public MethodBytecodeSetFactory(String analysisName, Class<MethodBytecodeSet> analysisClass) {
super(analysisName, analysisClass);
}