org.treesitter.TSReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tree-sitter Show documentation
Show all versions of tree-sitter Show documentation
Next generation Tree Sitter Java binding
The newest version!
package org.treesitter;
/**
* Interface for custom source code reader
*/
public interface TSReader {
/**
* The read method is called when the parser needs to read more data from the source code.
* @param buf buffer to write data to
* @param offset offset to read from
* @param position position to read from
* @return 0
if the end of the source code was reached, otherwise the number of bytes read.
*/
int read(byte[] buf, int offset, TSPoint position);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy