private static Target getType(BreakpointInfo info) {
BreakpointInfo.Type infoType = info.type();
switch (infoType) {
case SCRIPTID: return new Target.ScriptId(info.script_id());
case SCRIPTNAME: return new Target.ScriptName(info.script_name());
case SCRIPTREGEXP: return new ScriptRegExpBreakpointTarget(info.script_regexp());
case FUNCTION: return new FunctionTarget(null);
}
throw new RuntimeException("Unknown type: " + infoType);
}