1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package NamespaceA; 4 5 import java.nio.*; 6 import java.lang.*; 7 import java.util.*; 8 import com.google.flatbuffers.*; 9 10 @SuppressWarnings("unused") 11 public final class TableInFirstNS extends Table { ValidateVersion()12 public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_0(); } getRootAsTableInFirstNS(ByteBuffer _bb)13 public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb) { return getRootAsTableInFirstNS(_bb, new TableInFirstNS()); } getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj)14 public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } __init(int _i, ByteBuffer _bb)15 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } __assign(int _i, ByteBuffer _bb)16 public TableInFirstNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 17 fooTable()18 public NamespaceA.NamespaceB.TableInNestedNS fooTable() { return fooTable(new NamespaceA.NamespaceB.TableInNestedNS()); } fooTable(NamespaceA.NamespaceB.TableInNestedNS obj)19 public NamespaceA.NamespaceB.TableInNestedNS fooTable(NamespaceA.NamespaceB.TableInNestedNS obj) { int o = __offset(4); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } fooEnum()20 public byte fooEnum() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) : 0; } mutateFooEnum(byte foo_enum)21 public boolean mutateFooEnum(byte foo_enum) { int o = __offset(6); if (o != 0) { bb.put(o + bb_pos, foo_enum); return true; } else { return false; } } fooUnionType()22 public byte fooUnionType() { int o = __offset(8); return o != 0 ? bb.get(o + bb_pos) : 0; } fooUnion(Table obj)23 public Table fooUnion(Table obj) { int o = __offset(10); return o != 0 ? __union(obj, o + bb_pos) : null; } fooStruct()24 public NamespaceA.NamespaceB.StructInNestedNS fooStruct() { return fooStruct(new NamespaceA.NamespaceB.StructInNestedNS()); } fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj)25 public NamespaceA.NamespaceB.StructInNestedNS fooStruct(NamespaceA.NamespaceB.StructInNestedNS obj) { int o = __offset(12); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; } 26 startTableInFirstNS(FlatBufferBuilder builder)27 public static void startTableInFirstNS(FlatBufferBuilder builder) { builder.startTable(5); } addFooTable(FlatBufferBuilder builder, int fooTableOffset)28 public static void addFooTable(FlatBufferBuilder builder, int fooTableOffset) { builder.addOffset(0, fooTableOffset, 0); } addFooEnum(FlatBufferBuilder builder, byte fooEnum)29 public static void addFooEnum(FlatBufferBuilder builder, byte fooEnum) { builder.addByte(1, fooEnum, 0); } addFooUnionType(FlatBufferBuilder builder, byte fooUnionType)30 public static void addFooUnionType(FlatBufferBuilder builder, byte fooUnionType) { builder.addByte(2, fooUnionType, 0); } addFooUnion(FlatBufferBuilder builder, int fooUnionOffset)31 public static void addFooUnion(FlatBufferBuilder builder, int fooUnionOffset) { builder.addOffset(3, fooUnionOffset, 0); } addFooStruct(FlatBufferBuilder builder, int fooStructOffset)32 public static void addFooStruct(FlatBufferBuilder builder, int fooStructOffset) { builder.addStruct(4, fooStructOffset, 0); } endTableInFirstNS(FlatBufferBuilder builder)33 public static int endTableInFirstNS(FlatBufferBuilder builder) { 34 int o = builder.endTable(); 35 return o; 36 } 37 38 public static final class Vector extends BaseVector { __assign(int _vector, int _element_size, ByteBuffer _bb)39 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } 40 get(int j)41 public TableInFirstNS get(int j) { return get(new TableInFirstNS(), j); } get(TableInFirstNS obj, int j)42 public TableInFirstNS get(TableInFirstNS obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } 43 } 44 } 45 46