Skip to content

Commit 9306132

Browse files
Update generated classes using last unpublished version of JNetReflector after commit a68acf8 (#30)
* Update generated classes using last unpublished version of JNetReflector after commit a68acf8 * 31: removed org.apache.pdfbox.pdmodel.common.function.type4.Parser$AbstractSyntaxHandler from reflected classes * #31: removed org.apache.pdfbox.pdmodel.common.function.type4.Parser$AbstractSyntaxHandler from reflected classes --------- Co-authored-by: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com>
1 parent a68acf8 commit 9306132

3 files changed

Lines changed: 3 additions & 48 deletions

File tree

src/configuration.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,11 @@
2828
"NamespacesToAvoid": [
2929
"org.apache.commons.logging"
3030
],
31-
"ClassesWithCallbacks": [
32-
{
33-
"ClassName": "org.apache.pdfbox.pdmodel.common.function.type4.Parser$AbstractSyntaxHandler",
34-
"Patterns": [
35-
"^comment.*",
36-
"^newLine.*",
37-
"^whitespace.*"
38-
]
39-
}
40-
],
4131
"ClassesToBeListener": [
4232
"org.apache.pdfbox.pdmodel.common.function.type4.Parser$SyntaxHandler"
4333
],
4434
"ClassesToAvoid": [
35+
"org.apache.pdfbox.pdmodel.common.function.type4.Parser$AbstractSyntaxHandler",
4536
"org.apache.pdfbox.pdmodel.font.FileSystemFontProvider"
4637
],
4738
"ClassesManuallyDeveloped": [

src/jvm/netpdf/src/main/java/org/mases/netpdf/generated/org/apache/pdfbox/pdmodel/common/function/type4/Parser_AbstractSyntaxHandler.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ public void setReturnData(Object retData) {
7070
_internalListener.setReturnData(retData);
7171
}
7272

73-
//@Override
74-
public void token(java.lang.CharSequence arg0) {
75-
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();
76-
raiseEvent("token", eventDataExchange, arg0); if (!eventDataExchange.getHasOverride()) throw new UnsupportedOperationException("The method shall be implemented in .NET side since does not have a default implementation within the JVM");
77-
}
78-
//@Override
79-
public void tokenBase(java.lang.CharSequence arg0) {
80-
super.token(arg0);
81-
}
8273
//@Override
8374
public void comment(java.lang.CharSequence arg0) {
8475
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();

src/net/NetPDF/Generated/Org/Apache/Pdfbox/Pdmodel/Common/Function/Type4/Parser.cs

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ public partial class AbstractSyntaxHandler
262262
/// </summary>
263263
protected virtual void InitializeHandlers()
264264
{
265-
AddEventHandler("token", new global::System.EventHandler<CLRListenerEventArgs<CLREventData<MASES.JNet.Specific.JNetEventResult>>>(TokenEventHandler));
266265
AddEventHandler("comment", new global::System.EventHandler<CLRListenerEventArgs<CLREventData<MASES.JNet.Specific.JNetEventResult>>>(CommentEventHandler));
267266
AddEventHandler("newLine", new global::System.EventHandler<CLRListenerEventArgs<CLREventData<MASES.JNet.Specific.JNetEventResult>>>(NewLineEventHandler));
268267
AddEventHandler("whitespace", new global::System.EventHandler<CLRListenerEventArgs<CLREventData<MASES.JNet.Specific.JNetEventResult>>>(WhitespaceEventHandler));
@@ -272,35 +271,9 @@ protected virtual void InitializeHandlers()
272271
/// <see href="https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/common/function/type4/Parser.SyntaxHandler.html#token-java.lang.CharSequence-"/>
273272
/// </summary>
274273
/// <param name="arg0"><see cref="Java.Lang.CharSequence"/></param>
275-
/// <remarks>The method invokes the default implementation in the JVM interface</remarks>
276-
public void TokenBase(Java.Lang.CharSequence arg0)
277-
{
278-
IExecuteWithSignature("tokenBase", "(Ljava/lang/CharSequence;)V", arg0);
279-
}
280-
281-
/// <summary>
282-
/// Handler for <see href="https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/common/function/type4/Parser.SyntaxHandler.html#token-java.lang.CharSequence-"/>
283-
/// </summary>
284-
/// <remarks>If <see cref="OnToken"/> has a value it takes precedence over corresponding class method</remarks>
285-
public global::System.Action<Java.Lang.CharSequence> OnToken { get; set; } = null;
286-
287-
bool hasOverrideToken = true;
288-
void TokenEventHandler(object sender, CLRListenerEventArgs<CLREventData<MASES.JNet.Specific.JNetEventResult>> data)
274+
public void Token(Java.Lang.CharSequence arg0)
289275
{
290-
hasOverrideToken = true;
291-
var methodToExecute = (OnToken != null) ? OnToken : Token;
292-
methodToExecute.Invoke(data.EventData.GetAt<Java.Lang.CharSequence>(0));
293-
data.EventData.TypedEventData.HasOverride = hasOverrideToken;
294-
}
295-
296-
/// <summary>
297-
/// <see href="https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/common/function/type4/Parser.SyntaxHandler.html#token-java.lang.CharSequence-"/>
298-
/// </summary>
299-
/// <param name="arg0"><see cref="Java.Lang.CharSequence"/></param>
300-
/// <remarks>The method invokes the default implementation in the JVM interface using <see cref="TokenBase"/>; override the method to implement a different behavior</remarks>
301-
public virtual void Token(Java.Lang.CharSequence arg0)
302-
{
303-
hasOverrideToken = false;
276+
IExecuteWithSignature("token", "(Ljava/lang/CharSequence;)V", arg0);
304277
}
305278
/// <summary>
306279
/// <see href="https://www.javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.4/org/apache/pdfbox/pdmodel/common/function/type4/Parser.AbstractSyntaxHandler.html#comment-java.lang.CharSequence-"/>

0 commit comments

Comments
 (0)