public EndPointAnalysis locateEndPoint(Frame frame, int depth) { Frame root = FrameUtil.getRoot(frame); Operation op = (root == null) ? null : root.getOperation(); if (op == null) { return null; } else { return makeEndPoint(op.getLabel()); } }
@Override protected EndPointAnalysis makeEndPoint(Frame frame, int depth) { Operation op = frame.getOperation(); EndPointName endPointName = EndPointName.valueOf(op); String example = EndPointAnalysis.getHttpExampleRequest(frame); return new EndPointAnalysis( endPointName, op.getLabel(), example, getOperationScore(op, depth), op); }