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

Public Member Functions

 GsonParser (String path)
 GsonParser (String path, boolean log)
final void deserialize ()
Public Member Functions inherited from com.osroyale.util.parser.GenericParser
 GenericParser (String path, String extension, boolean log)
void onRead ()
final int getIndex ()

Protected Member Functions

abstract void parse (JsonObject data)
void onEnd ()

Protected Attributes

transient Gson builder
Protected Attributes inherited from com.osroyale.util.parser.GenericParser
final Path path
int index

Detailed Description

/**

Definition at line 50 of file GsonParser.java.

Constructor & Destructor Documentation

◆ GsonParser() [1/2]

com.osroyale.util.parser.GsonParser.GsonParser ( String path)
inline

Creates a new GsonParser.

Parameters
pathThe specified path of the json file to parse.

Definition at line 62 of file GsonParser.java.

◆ GsonParser() [2/2]

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

Creates a new GsonParser.

Parameters
pathThe specified path of the json file to parse.
logThe flag that denotes to log messages.

Definition at line 72 of file GsonParser.java.

Member Function Documentation

◆ deserialize()

final void com.osroyale.util.parser.GsonParser.deserialize ( )
inline

The method that deserializes the file information.

Reimplemented from com.osroyale.util.parser.GenericParser.

Definition at line 94 of file GsonParser.java.

◆ onEnd()

void com.osroyale.util.parser.GsonParser.onEnd ( )
inlineprotected

This method handles what happens after the parser has ended.

Reimplemented in com.osroyale.util.parser.old.EquipmentDefinitionParser.

Definition at line 90 of file GsonParser.java.

◆ parse()

Member Data Documentation

◆ builder

transient Gson com.osroyale.util.parser.GsonParser.builder
protected

The Gson object.

Definition at line 55 of file GsonParser.java.


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