Skip to content

Commit

Permalink
Refined API in NewFileSliceGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufco committed Jan 22, 2025
1 parent 45811d5 commit c37900c
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,22 @@
*/
public interface NewFileSliceGraph {

/**
* Sets the source code language for which this file slice graph was recorded.
*
* @param language source code language (`java`, `javascript`, ...)
*/
@Beta
NewFileSliceGraph setLanguage(String language);

/**
* Sets the graph data for this file slice graph from the given byte array.
* This method is for internal use only.
* The concrete data format is not nearer specified while prone to change in the future, it is irrelevant for the DB side.
* There must be a common contract between the analyzer side and the UI side.
*
* @param bytes graph data
*/
@Beta
void setGraphData(byte[] bytes);
NewFileSliceGraph setData(byte[] bytes);
}

0 comments on commit c37900c

Please sign in to comment.