本文整理了Java中com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode
类的一些代码示例,展示了ZeroLengthArrayInNode
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeroLengthArrayInNode
类的具体详情如下:
包路径:com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode
类名称:ZeroLengthArrayInNode
[英]Represents an array with length zero. Useful for precision since such arrays cannot have contents.
[中]表示长度为零的数组。因为这样的数组不能包含内容,所以对精度很有用。
代码示例来源:origin: com.ibm.wala/com.ibm.wala.core
@Override
public int hashCode() {
return getNode().hashCode() * 8647 + getSite().hashCode();
}
代码示例来源:origin: wala/WALA
if (c.intValue() == 0) {
if (options.getHandleZeroLengthArray()) {
return new ZeroLengthArrayInNode(nodeToUse, allocation, type);
} else {
return new NormalAllocationInNode(nodeToUse, allocation, type);
代码示例来源:origin: com.ibm.wala/com.ibm.wala.core
if (c.intValue() == 0) {
if (options.getHandleZeroLengthArray()) {
return new ZeroLengthArrayInNode(nodeToUse, allocation, type);
} else {
return new NormalAllocationInNode(nodeToUse, allocation, type);
代码示例来源:origin: wala/WALA
@Override
public int hashCode() {
return getNode().hashCode() * 8647 + getSite().hashCode();
}
代码示例来源:origin: wala/WALA
@Override
public boolean equals(Object obj) {
// instanceof is OK because this class is final
if (obj instanceof ZeroLengthArrayInNode) {
AllocationSiteInNode other = (AllocationSiteInNode) obj;
return getNode().equals(other.getNode()) && getSite().equals(other.getSite());
} else {
return false;
}
}
代码示例来源:origin: com.ibm.wala/com.ibm.wala.core
@Override
public boolean equals(Object obj) {
// instanceof is OK because this class is final
if (obj instanceof ZeroLengthArrayInNode) {
AllocationSiteInNode other = (AllocationSiteInNode) obj;
return getNode().equals(other.getNode()) && getSite().equals(other.getSite());
} else {
return false;
}
}
内容来源于网络,如有侵权,请联系作者删除!