本文整理汇总了Java中som.vmobjects.SArray.create方法的典型用法代码示例。如果您正苦于以下问题:Java SArray.create方法的具体用法?Java SArray.create怎么用?Java SArray.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类som.vmobjects.SArray
的用法示例。
在下文中一共展示了SArray.create方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doLong
import som.vmobjects.SArray; //导入方法依赖的package包/类
@Specialization
public final SArray doLong(final long receiver, final long right) {
int cnt = (int) right - (int) receiver + 1;
long[] arr = new long[cnt];
for (int i = 0; i < cnt; i++) {
arr[i] = i + receiver;
}
return SArray.create(arr);
}
示例2: literalArray
import som.vmobjects.SArray; //导入方法依赖的package包/类
private SArray literalArray() throws ParseError {
List<Object> literals = new ArrayList<Object>();
expect(Pound);
expect(NewTerm);
while (sym != EndTerm) {
literals.add(getObjectForCurrentLiteral());
}
expect(EndTerm);
return SArray.create(literals.toArray());
}
示例3: doObjectArray
import som.vmobjects.SArray; //导入方法依赖的package包/类
@Specialization(guards = "isObjectType(receiver)")
public final SArray doObjectArray(final SArray receiver) {
return SArray.create(receiver.getObjectStorage(storageType).clone());
}
示例4: doLongArray
import som.vmobjects.SArray; //导入方法依赖的package包/类
@Specialization(guards = "isLongType(receiver)")
public final SArray doLongArray(final SArray receiver) {
return SArray.create(receiver.getLongStorage(storageType).clone());
}
示例5: doDoubleArray
import som.vmobjects.SArray; //导入方法依赖的package包/类
@Specialization(guards = "isDoubleType(receiver)")
public final SArray doDoubleArray(final SArray receiver) {
return SArray.create(receiver.getDoubleStorage(storageType).clone());
}
示例6: doBooleanArray
import som.vmobjects.SArray; //导入方法依赖的package包/类
@Specialization(guards = "isBooleanType(receiver)")
public final SArray doBooleanArray(final SArray receiver) {
return SArray.create(receiver.getBooleanStorage(storageType).clone());
}