com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode类的一些代码示例,展示了ZeroLengthArrayInNode类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeroLengthArrayInNode类的具体详情如下:
包路径:com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode
类名称: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;
 }
}

相关文章