本文整理汇总了Java中jdk.nashorn.internal.runtime.arrays.IntElements类的典型用法代码示例。如果您正苦于以下问题:Java IntElements类的具体用法?Java IntElements怎么用?Java IntElements使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IntElements类属于jdk.nashorn.internal.runtime.arrays包,在下文中一共展示了IntElements类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: popInt
import jdk.nashorn.internal.runtime.arrays.IntElements; //导入依赖的package包/类
/**
* Specialization of pop for ContinuousArrayData
* The link guard checks that the array is continuous AND not empty.
* The runtime guard checks that the guard is continuous (CCE otherwise)
*
* Primitive specialization, {@link LinkLogic}
*
* @param self self reference
* @return element popped
* @throws ClassCastException if array is empty, facilitating Undefined return value
*/
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
//must be non empty IntArrayData
return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}