Class SchemaFile


  • public final class SchemaFile
    extends Table
    File specific information. Symbols declared within a file may be recovered by iterating over all symbols and examining the `declaration_file` field.
    • Constructor Detail

      • SchemaFile

        public SchemaFile()
    • Method Detail

      • ValidateVersion

        public static void ValidateVersion()
      • __init

        public void __init​(int _i,
                           ByteBuffer _bb)
      • filename

        public String filename()
        Filename, relative to project root.
      • filenameAsByteBuffer

        public ByteBuffer filenameAsByteBuffer()
      • includedFilenames

        public String includedFilenames​(int j)
        Names of included files, relative to project root.
      • includedFilenamesLength

        public int includedFilenamesLength()
      • includedFilenamesVector

        public StringVector includedFilenamesVector()
      • createSchemaFile

        public static int createSchemaFile​(FlatBufferBuilder builder,
                                           int filenameOffset,
                                           int includedFilenamesOffset)
      • startSchemaFile

        public static void startSchemaFile​(FlatBufferBuilder builder)
      • addFilename

        public static void addFilename​(FlatBufferBuilder builder,
                                       int filenameOffset)
      • addIncludedFilenames

        public static void addIncludedFilenames​(FlatBufferBuilder builder,
                                                int includedFilenamesOffset)
      • createIncludedFilenamesVector

        public static int createIncludedFilenamesVector​(FlatBufferBuilder builder,
                                                        int[] data)
      • startIncludedFilenamesVector

        public static void startIncludedFilenamesVector​(FlatBufferBuilder builder,
                                                        int numElems)
      • keysCompare

        protected int keysCompare​(Integer o1,
                                  Integer o2,
                                  ByteBuffer _bb)
        Description copied from class: Table
        Compare two tables by the key.
        Overrides:
        keysCompare in class Table
        Parameters:
        o1 - An 'Integer' index of the first key into the bb.
        o2 - An 'Integer' index of the second key into the bb.
        _bb - A ByteBuffer to get the keys.