private static ObjectVariable getSourceVar(JPDADebugger debugger, JPDAClassType classType) { List<Field> staticFields = classType.staticFields(); for (Field sf : staticFields) { if (sf instanceof ObjectVariable && SOURCE_FIELD.equals(sf.getName()) && SOURCE_CLASS.equals(sf.getType())) { return (ObjectVariable) sf; } } return null; }
static boolean isDescriptionExpandable(Variable descVar) { Field expandableField = ((ObjectVariable) descVar).getField(FIELD_DESC_EXPANDABLE); return "true".equals(expandableField.getValue()); }
public boolean showSource (Field v) { String fieldName = ((Field) v).getName (); String className = className = ((Field) v).getClassName (); String url = getURL ( EditorContextBridge.getRelativePath (className), true ); if (url == null) return false; int lineNumber = lineNumber = EditorContextBridge.getContext().getFieldLineNumber ( url, className, fieldName ); if (lineNumber < 1) lineNumber = 1; return EditorContextBridge.getContext().showSource ( url, lineNumber, debugger ); }
if (field != null && field.getDeclaringClass().getName().equals(fieldClass)) { return field; if (field != null && field.getDeclaringClass().getName().equals(fieldClass)) { return field;
return null; Object urlObj = fieldURL != null ? fieldURL.createMirrorObject() : null; URL url; boolean compareContent = false; url = (URL) urlObj; Object hashMirror = fieldHash.createMirrorObject(); if (!(hashMirror instanceof Integer)) { return null; Object contentMirror = fieldContent.createMirrorObject(); if (!(contentMirror instanceof char[])) { return null; String name = fieldName.getValue(); if (name.startsWith("\"") && name.endsWith("\"")) { name = name.substring(1, name.length() - 1);
public boolean sourceAvailable ( CallStackFrame csf, String stratumn ) { try { return sourceAvailable ( convertSlash (csf.getSourcePath (stratumn)), true ); } catch (AbsentInformationException e) { return sourceAvailable ( convertClassNameToRelativePath (csf.getClassName ()), true ); } }
if (field != null && field.getDeclaringClass().getName().equals(fieldClass)) { return field; if (field != null && field.getDeclaringClass().getName().equals(fieldClass)) { return field;
static String getDescriptionValue(Variable descVar) { Field valueAsStringField = ((ObjectVariable) descVar).getField(FIELD_DESC_VALUE_AS_STRING); return removeQuotes(valueAsStringField.getValue()); }
static String getDescriptionKey(Variable descVar) { Field keyField = ((ObjectVariable) descVar).getField(FIELD_DESC_KEY); return removeQuotes(keyField.getValue()); }