Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -17,78 +17,173 @@
*/

/*
* This file is generated by MASES.JNetReflector (ver. 2.6.6.0)
* This file is generated by MASES.JNetReflector (ver. 2.6.9.0)
*/

package org.mases.netpdf.generated.org.apache.pdfbox.pdmodel.common.function.type4;

public final class Parser_SyntaxHandler implements org.mases.jcobridge.IJCListener, org.apache.pdfbox.pdmodel.common.function.type4.Parser.SyntaxHandler {
final org.mases.jcobridge.JCListener _internalListener;

/**
* Constructs the listener and registers it with the JCOBridge runtime using the provided key.
* @param key the registration key used by JCOBridge to identify this listener instance on the CLR side.
* @throws org.mases.jcobridge.JCNativeException if the native bridge initialization fails.
*/
public Parser_SyntaxHandler(String key) throws org.mases.jcobridge.JCNativeException {
super();
_internalListener = new org.mases.jcobridge.JCListener(key);
}

/**
* Releases the resources held by this listener and unregisters it from the JCOBridge runtime.
*/
public synchronized void release() {
_internalListener.release();
}


/**
* Returns the numeric index associated with the given event name.
* The index is used by the CLR side for zero-cost index-based event filtering.
* @param eventName the name of the event as registered on the CLR side.
* @return the numeric index of the event.
*/
public synchronized int getEventIndex(String eventName) {
return _internalListener.getEventIndex(eventName);
}

/**
* Raises the named event on the CLR side with no associated data.
* @param eventName the name of the event to raise.
*/
public synchronized void raiseEvent(String eventName) {
_internalListener.raiseEvent(eventName);
}


/**
* Raises the event identified by index on the CLR side with no associated data.
* @param eventIndex the numeric index of the event to raise.
*/
public synchronized void raiseEvent(int eventIndex) {
_internalListener.raiseEvent(eventIndex);
}

/**
* Raises the named event on the CLR side, passing a single data object.
* @param eventName the name of the event to raise.
* @param e the data object associated with the event.
*/
public synchronized void raiseEvent(String eventName, Object e) {
_internalListener.raiseEvent(eventName, e);
}


/**
* Raises the event identified by index on the CLR side, passing a single data object.
* @param eventIndex the numeric index of the event to raise.
* @param e the data object associated with the event.
*/
public synchronized void raiseEvent(int eventIndex, Object e) {
_internalListener.raiseEvent(eventIndex, e);
}

/**
* Raises the named event on the CLR side, passing a primary data object and additional arguments.
* @param eventName the name of the event to raise.
* @param e the primary data object associated with the event.
* @param objects additional arguments forwarded to the CLR handler.
*/
public synchronized void raiseEvent(String eventName, Object e, Object... objects) {
_internalListener.raiseEvent(eventName, e, objects);
}


/**
* Raises the event identified by index on the CLR side, passing a primary data object and additional arguments.
* @param eventIndex the numeric index of the event to raise.
* @param e the primary data object associated with the event.
* @param objects additional arguments forwarded to the CLR handler.
*/
public synchronized void raiseEvent(int eventIndex, Object e, Object... objects) {
_internalListener.raiseEvent(eventIndex, e, objects);
}

/**
* Returns the data object sent by the CLR side for the current event, if any.
* @return the event data object, or {@code null} if none was provided.
*/
public Object getEventData() {
return _internalListener.getEventData();
}


/**
* Returns {@code true} if the current event has additional arguments beyond the primary data object.
* @return {@code true} if extra data is available.
*/
public boolean hasExtraData() {
return _internalListener.hasExtraData();
}


/**
* Returns the number of additional arguments associated with the current event.
* @return the length of the extra data array.
*/
public int extraDataLength() {
return _internalListener.extraDataLength();
}


/**
* Returns the additional arguments associated with the current event.
* @return an array of extra data objects, or an empty array if none are present.
*/
public Object[] extraData() {
return _internalListener.extraData();
}


/**
* Returns the return value set by the CLR handler for the current event.
* Used when the JVM interface method has a non-void return type and the CLR side
* must supply the value via {@link #setReturnData(Object)}.
* @return the return value, or {@code null} if not set.
*/
public Object getReturnData() {
return _internalListener.getReturnData();
}


/**
* Sets the return value that the JVM interface method will return to its caller.
* Must be called by the CLR handler before control returns to the JVM for non-void interface methods.
* @param retData the value to return to the JVM caller.
*/
public void setReturnData(Object retData) {
_internalListener.setReturnData(retData);
}

int _commentIndex = 0;
//@Override
public void comment(java.lang.CharSequence arg0) {
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();
raiseEvent("comment", 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");
if (_commentIndex <= 0) _commentIndex = getEventIndex("comment");
raiseEvent(_commentIndex, 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");
}
int _newLineIndex = 0;
//@Override
public void newLine(java.lang.CharSequence arg0) {
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();
raiseEvent("newLine", 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");
if (_newLineIndex <= 0) _newLineIndex = getEventIndex("newLine");
raiseEvent(_newLineIndex, 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");
}
int _tokenIndex = 0;
//@Override
public void token(java.lang.CharSequence arg0) {
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();
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");
if (_tokenIndex <= 0) _tokenIndex = getEventIndex("token");
raiseEvent(_tokenIndex, 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");
}
int _whitespaceIndex = 0;
//@Override
public void whitespace(java.lang.CharSequence arg0) {
org.mases.jnet.developed.JNetEventResult eventDataExchange = new org.mases.jnet.developed.JNetEventResult();
raiseEvent("whitespace", 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");
if (_whitespaceIndex <= 0) _whitespaceIndex = getEventIndex("whitespace");
raiseEvent(_whitespaceIndex, 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");
}

}
Loading
Loading