Skip to content

Commit

Permalink
build: more effective Deparser Constructors
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
  • Loading branch information
manticore-projects committed Jun 3, 2024
1 parent 1d717bf commit 858058e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public SelectDeParser(Class<? extends ExpressionDeParser> expressionDeparserClas
.newInstance(this, builder);
}

public SelectDeParser(Class<? extends ExpressionDeParser> expressionDeparserClass)
throws NoSuchMethodException, InvocationTargetException,
InstantiationException, IllegalAccessException {
this(expressionDeparserClass, new StringBuilder());
}


public SelectDeParser(ExpressionVisitor expressionVisitor, StringBuilder buffer) {
super(buffer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public StatementDeParser(Class<? extends ExpressionDeParser> expressionDeparserC

}

public StatementDeParser(Class<? extends ExpressionDeParser> expressionDeparserClass,
Class<? extends SelectDeParser> selectDeparserClass)
throws NoSuchMethodException, InvocationTargetException, InstantiationException,
IllegalAccessException {
this(expressionDeparserClass, selectDeparserClass, new StringBuilder());
}

public StatementDeParser(StringBuilder buffer) {
this(new ExpressionDeParser(), new SelectDeParser(), buffer);
}
Expand Down

0 comments on commit 858058e

Please sign in to comment.