From 33cbc71a230e7522168fdfe41afd5e3acf5bb7b5 Mon Sep 17 00:00:00 2001 From: ArghKevin Date: Wed, 8 May 2024 21:24:42 -0700 Subject: Javadoc beginning. --- src/JSONReader.java | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src/JSONReader.java') diff --git a/src/JSONReader.java b/src/JSONReader.java index 52edf3a..786b2a1 100644 --- a/src/JSONReader.java +++ b/src/JSONReader.java @@ -1,3 +1,4 @@ +import java.util.HashMap; import java.io.*; /* @@ -5,10 +6,9 @@ import java.io.*; * Kian Agheli * * References: - * https://jqlang.github.io/jq/manual/ * * Date: - * 2024-04-28 + * 2024-05-08 * * Purpose of class: * Read from and interpret JSON files. @@ -19,8 +19,25 @@ public class JSONReader extends Reader { super(file); } - /* Something akin to jq's field selection. */ - public String getField(String field) { + /* + * Search for and return the first + * match. + */ + public String get(String field) { + return null; + } + + /* + * Search for and return all matches. + */ + public String[] getAll(String field) { + return null; + } + + /* + * Search for and return a table of fields. + */ + public String getTable(HashMap name) { return null; } } -- cgit v1.2.3