public boolean hasNext() { if (reqAttributes == null) return false; boolean ret = false; try { Variable hasMoreElements = reqAttributes.invokeMethod( "hasMoreElements", "()Z", new Variable[0] ); ret = (hasMoreElements != null && "true".equals(hasMoreElements.getValue())); } catch (InvalidExpressionException e) { } catch (NoSuchMethodException e) { } return ret; }
public String getValue() { if (!watch.isEnabled()) { return NbBundle.getMessage(JspElWatch.class, "CTL_WatchDisabled"); } if (!evaluated) { evaluate(); } return variable == null ? "" : variable.getValue(); }
public static JSVariable[] createScopeVars(JPDADebugger debugger, Variable scope) { String value = scope.getValue(); if ("null".equals(value)) { return new JSVariable[] {}; } Variable[] valueInfos = DebuggerSupport.getValueInfos(debugger, scope, false); if (valueInfos == null) { return new JSVariable[] {}; } int n = valueInfos.length; JSVariable[] jVars = new JSVariable[n]; for (int i = 0; i < n; i++) { jVars[i] = new JSVariable(debugger, valueInfos[i]); } return jVars; }
public Object next() { Object nextElement = null; try { Variable attributeName = reqAttributes.invokeMethod( "nextElement", "()Ljava/lang/Object;", new Variable[0] ); // object collected or vm disconnected if null if (attributeName != null) { Variable attributeValue = owner.invokeMethod( "getAttribute", "(Ljava/lang/String;)Ljava/lang/Object;", new Variable[] { attributeName } ); nextElement = new AttributeMap.Attribute( (attributeName.getValue() == null ? "" : attributeName.getValue()), attributeValue); } } catch (InvalidExpressionException e) { } catch (NoSuchMethodException e) { } return nextElement; }
String str = var.getValue(); if (str.length() > 2 && str.startsWith("\"") && str.endsWith("\"")) { str = str.substring(1, str.length() - 1);
evaluating.set(Boolean.TRUE); Variable contextPathVar = debugger.evaluate("request.getContextPath()"); String contextPath = contextPathVar.getValue(); if (contextPath.startsWith("\"") && contextPath.endsWith("\"")) { contextPath = contextPath.substring(1, contextPath.length() - 1);
Variable attributeValue = ((AttributeMap.Attribute)node).getValue(); String type = attributeValue.getType (); String stringValue = attributeValue.getValue(); if (attributeValue instanceof ObjectVariable) { final ObjectVariable ov = (ObjectVariable) attributeValue;
toolTipText = textForTooltip + " = (" + v.getType() + ")" + ((ObjectVariable)v).getToStringValue(); } else { toolTipText = textForTooltip + " = (" + v.getType() + ")" + v.getValue();