RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.util.parser.GenericParser Class Referenceabstract
Inheritance diagram for com.osroyale.util.parser.GenericParser:
Collaboration diagram for com.osroyale.util.parser.GenericParser:

Public Member Functions

 GenericParser (String path, String extension, boolean log)
abstract void deserialize ()
void onRead ()
final int getIndex ()

Protected Attributes

final Path path
int index

Detailed Description

Represents an abstract parser.

Author
Seven

Definition at line 45 of file GenericParser.java.

Constructor & Destructor Documentation

◆ GenericParser()

com.osroyale.util.parser.GenericParser.GenericParser ( String path,
String extension,
boolean log )
inline

Creates a new GenericParser.

Parameters
pathThe path of the file to parse.
extensionThe file name extension.
logThe flag that denotes to log messages.

Definition at line 78 of file GenericParser.java.

Member Function Documentation

◆ deserialize()

abstract void com.osroyale.util.parser.GenericParser.deserialize ( )
abstract

The method that deserializes the file information.

Reimplemented in com.osroyale.util.parser.GsonParser, and com.osroyale.util.parser.TextFileParser.

◆ getIndex()

final int com.osroyale.util.parser.GenericParser.getIndex ( )
inline

Gets the current index of the line being parsed.

Returns
The index of this line.

Definition at line 110 of file GenericParser.java.

◆ onRead()

void com.osroyale.util.parser.GenericParser.onRead ( )
inline

The method called after all the data has been parsed.

Definition at line 101 of file GenericParser.java.

Member Data Documentation

◆ index

int com.osroyale.util.parser.GenericParser.index
protected

The index of the current line being parsed.

Definition at line 57 of file GenericParser.java.

◆ path

final Path com.osroyale.util.parser.GenericParser.path
protected

The path of the file to parse.

Definition at line 52 of file GenericParser.java.


The documentation for this class was generated from the following file: