1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import javax.annotation.Nullable;
11 * A Record, unit of logging output with Metadata to enable filtering
12 * Module_path, file, line to inform on log's source
14 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
15 public class Record extends CommonBase {
16 Record(Object _dummy, long ptr) { super(ptr); }
17 @Override @SuppressWarnings("deprecation")
18 protected void finalize() throws Throwable {
20 if (ptr != 0) { bindings.Record_free(ptr); }
24 * The verbosity level of the message.
26 public Level get_level() {
27 Level ret = bindings.Record_get_level(this.ptr);
32 * The verbosity level of the message.
34 public void set_level(org.ldk.enums.Level val) {
35 bindings.Record_set_level(this.ptr, val);
41 public String get_args() {
42 String ret = bindings.Record_get_args(this.ptr);
49 public void set_args(java.lang.String val) {
50 bindings.Record_set_args(this.ptr, val);
54 * The module path of the message.
56 public String get_module_path() {
57 String ret = bindings.Record_get_module_path(this.ptr);
62 * The module path of the message.
64 public void set_module_path(java.lang.String val) {
65 bindings.Record_set_module_path(this.ptr, val);
69 * The source file containing the message.
71 public String get_file() {
72 String ret = bindings.Record_get_file(this.ptr);
77 * The source file containing the message.
79 public void set_file(java.lang.String val) {
80 bindings.Record_set_file(this.ptr, val);
84 * The line containing the message.
86 public int get_line() {
87 int ret = bindings.Record_get_line(this.ptr);
92 * The line containing the message.
94 public void set_line(int val) {
95 bindings.Record_set_line(this.ptr, val);
99 long ret = bindings.Record_clone_ptr(this.ptr);
104 * Creates a copy of the Record
106 public Record clone() {
107 long ret = bindings.Record_clone(this.ptr);
108 if (ret >= 0 && ret <= 4096) { return null; }
109 Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Record(null, ret); }
110 ret_hu_conv.ptrs_to.add(this);