本文整理了Java中php.runtime.Memory.isUndefined()
方法的一些代码示例,展示了Memory.isUndefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Memory.isUndefined()
方法的具体详情如下:
包路径:php.runtime.Memory
类名称:Memory
方法名:isUndefined
暂无
代码示例来源:origin: jphp-group/jphp
public static void checkReturnReference(Memory memory, Environment env, TraceInfo trace) {
if (memory.isImmutable() && !memory.isUndefined()) {
env.warning(trace, Messages.ERR_RETURN_NOT_REFERENCE.fetch());
}
}
代码示例来源:origin: jphp-group/jphp
if (iterator.getValue().isUndefined()) {
continue;
代码示例来源:origin: jphp-group/jphp
protected static Memory _str_replace_impl(Environment env, TraceInfo trace,
Memory search, Memory replace, Memory string,
@Reference Memory _count, boolean isInsensitive) {
String searchText = search.toString();
String replaceText = replace.toString();
String text = string.toString();
AtomicLong count = _count.isUndefined() ? null : new AtomicLong(_count.toLong());
text = StringUtils.replace(text, searchText, replaceText, isInsensitive, count);
if (count != null) _count.assign(count.get());
return StringMemory.valueOf(text);
}
代码示例来源:origin: jphp-group/jphp
@Override
public void run(Debugger context, CommandArguments args, Document result) {
Element response = createResponse(args, result);
String contextId = args.get("c");
response.setAttribute("context", contextId);
ContextValueProvider contextValueProvider = new ContextValueProvider(context, result);
switch (contextId) {
case "0":
DebugTick tick = context.getRegisteredTick();
ForeachIterator iterator = tick.getLocals().foreachIterator(true, false);
while (iterator.next()) {
Memory value = iterator.getValue().toValue();
if (value.isUndefined()) {
continue;
}
response.appendChild(contextValueProvider.getProperty(iterator.getKey().toString(), value));
}
break;
}
}
}
代码示例来源:origin: jphp-group/jphp
if (GrammarUtils.isValidName(keyS) && locals.valueOfIndex(keyS).isUndefined()) {
locals.refOfIndex(keyS).assign(value);
count++;
if (!locals.valueOfIndex(keyS).isUndefined()) {
var = prefix.concat(keyS);
if (GrammarUtils.isValidName(var)) {
if (!locals.valueOfIndex(keyS).isUndefined()) {
locals.refOfIndex(keyS).assign(value);
count++;
if (!locals.valueOfIndex(keyS).isUndefined()) {
var = prefix.concat(keyS);
if (GrammarUtils.isValidName(var)) {
代码示例来源:origin: jphp-group/jphp
if (r == null || r.isUndefined()) {
method.getEntity().setResult(result);
代码示例来源:origin: jphp-group/jphp
entity.setEmpty(false);
if (entity.getResult() != null && entity.getResult().isUndefined()) {
entity.setResult(null);
内容来源于网络,如有侵权,请联系作者删除!