diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java')
-rw-r--r-- | src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java index ad4c65e..9cd96d1 100644 --- a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java +++ b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java @@ -16,25 +16,13 @@ import java.util.List; @AutoService(IMapper.class) public class TSRGMapper extends AbstractMapper { - /** - * Checks whether this mapper can process the given lines. - * @param lines the lines to read - * @return whether this type of mapper can process these lines - */ @Override public boolean claim(List<String> lines) { return lines.get(0).startsWith("tsrg2 left right"); } - /** - * Reads the given lines of text and attempts to interpret them as - * mappings of the given type. - * @param lines the lines to read - * @param ignoreErrors try to ignore errors and keep going - * @throws MalformedMappingsException if an error is encountered and ignoreErrors is false - */ @Override - protected void processLines(List<String> lines, boolean ignoreErrors) throws MalformedMappingsException { + public void populate(List<String> lines, boolean ignoreErrors) throws MalformedMappingsException { String currentClass = ""; for(int i = 1; i < lines.size(); i++) { //start from 1 to skip header String currentLine = lines.get(i); @@ -55,4 +43,9 @@ public class TSRGMapper extends AbstractMapper { } } } + + @Override + protected AbstractMapper newInstance() { + return new TSRGMapper(); + } } |