Skip to content

Commit

Permalink
added externally required accessors to YamlConfig; bumped java-version
Browse files Browse the repository at this point in the history
  • Loading branch information
BlvckBytes committed Oct 18, 2024
1 parent cee8efa commit f0969eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</repositories>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<!-- Always fall back to true (safe) -->
<!-- Request non-production with "-Dproduction=false" -->
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/me/blvckbytes/bbconfigmapper/YamlConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ public YamlConfig(@Nullable IExpressionEvaluator evaluator, Logger logger, @Null
this.mergedTuples = new ArrayList<>();
}

public @Nullable String getExpressionMarkerSuffix() {
return this.expressionMarkerSuffix;
}

public MappingNode getRootNode() {
return this.rootNode;
}

public String getHeader() {
return this.header;
}

public void load(Reader reader) {
Iterator<Node> nodes = YAML.composeAll(reader).iterator();

Expand Down

0 comments on commit f0969eb

Please sign in to comment.