本文整理了Java中com.strobel.core.ArrayUtilities.isArray()
方法的一些代码示例,展示了ArrayUtilities.isArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayUtilities.isArray()
方法的具体详情如下:
包路径:com.strobel.core.ArrayUtilities
类名称:ArrayUtilities
方法名:isArray
暂无
代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools
public int getOperandCount() {
final Object operand = _operand;
if (operand == null) {
return 0;
}
if (ArrayUtilities.isArray(operand)) {
return Array.getLength(operand);
}
return 1;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools
public int getOperandCount() {
final Object operand = _operand;
if (operand == null) {
return 0;
}
if (ArrayUtilities.isArray(operand)) {
return Array.getLength(operand);
}
return 1;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools
public int getOperandCount() {
final Object operand = _operand;
if (operand == null) {
return 0;
}
if (ArrayUtilities.isArray(operand)) {
return Array.getLength(operand);
}
return 1;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools
@SuppressWarnings("unchecked")
public <T> T getOperand(final int index) {
final Object operand = _operand;
if (ArrayUtilities.isArray(operand)) {
VerifyArgument.inRange(0, Array.getLength(operand) - 1, index, "index");
return (T) Array.get(operand, index);
}
else {
VerifyArgument.inRange(0, 0, index, "index");
return (T) operand;
}
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools
@SuppressWarnings("unchecked")
public <T> T getOperand(final int index) {
final Object operand = _operand;
if (ArrayUtilities.isArray(operand)) {
VerifyArgument.inRange(0, Array.getLength(operand) - 1, index, "index");
return (T) Array.get(operand, index);
}
else {
VerifyArgument.inRange(0, 0, index, "index");
return (T) operand;
}
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools
@SuppressWarnings("unchecked")
public <T> T getOperand(final int index) {
final Object operand = _operand;
if (ArrayUtilities.isArray(operand)) {
VerifyArgument.inRange(0, Array.getLength(operand) - 1, index, "index");
return (T) Array.get(operand, index);
}
else {
VerifyArgument.inRange(0, 0, index, "index");
return (T) operand;
}
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-compilertools
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public Instruction clone() {
final Instruction copy = new Instruction(_opCode, (Object) null);
copy._offset = _offset;
copy._label = _label != null ? new Label(_label.getIndex()) : null;
if (ArrayUtilities.isArray(_operand)) {
copy._operand = ((Object[]) _operand).clone();
}
else {
copy._operand = _operand;
}
return copy;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-compilertools
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public Instruction clone() {
final Instruction copy = new Instruction(_opCode, (Object) null);
copy._offset = _offset;
copy._label = _label != null ? new Label(_label.getIndex()) : null;
if (ArrayUtilities.isArray(_operand)) {
copy._operand = ((Object[]) _operand).clone();
}
else {
copy._operand = _operand;
}
return copy;
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-compilertools
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public Instruction clone() {
final Instruction copy = new Instruction(_opCode, (Object) null);
copy._offset = _offset;
copy._label = _label != null ? new Label(_label.getIndex()) : null;
if (ArrayUtilities.isArray(_operand)) {
copy._operand = ((Object[]) _operand).clone();
}
else {
copy._operand = _operand;
}
return copy;
}
内容来源于网络,如有侵权,请联系作者删除!