Class Enum

java.lang.Object
com.google.flatbuffers.Table
com.google.flatbuffers.reflection.Enum

public final class Enum extends Table
  • Constructor Details

    • Enum

      public Enum()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsEnum

      public static Enum getRootAsEnum(ByteBuffer _bb)
    • getRootAsEnum

      public static Enum getRootAsEnum(ByteBuffer _bb, Enum obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Enum __assign(int _i, ByteBuffer _bb)
    • name

      public String name()
    • nameAsByteBuffer

      public ByteBuffer nameAsByteBuffer()
    • nameInByteBuffer

      public ByteBuffer nameInByteBuffer(ByteBuffer _bb)
    • values

      public EnumVal values(int j)
    • values

      public EnumVal values(EnumVal obj, int j)
    • valuesLength

      public int valuesLength()
    • valuesByKey

      public EnumVal valuesByKey(long key)
    • valuesByKey

      public EnumVal valuesByKey(EnumVal obj, long key)
    • valuesVector

      public EnumVal.Vector valuesVector()
    • valuesVector

      public EnumVal.Vector valuesVector(EnumVal.Vector obj)
    • isUnion

      public boolean isUnion()
    • underlyingType

      public Type underlyingType()
    • underlyingType

      public Type underlyingType(Type obj)
    • attributes

      public KeyValue attributes(int j)
    • attributes

      public KeyValue attributes(KeyValue obj, int j)
    • attributesLength

      public int attributesLength()
    • attributesByKey

      public KeyValue attributesByKey(String key)
    • attributesByKey

      public KeyValue attributesByKey(KeyValue obj, String key)
    • attributesVector

      public KeyValue.Vector attributesVector()
    • attributesVector

      public KeyValue.Vector attributesVector(KeyValue.Vector obj)
    • documentation

      public String documentation(int j)
    • documentationLength

      public int documentationLength()
    • documentationVector

      public StringVector documentationVector()
    • documentationVector

      public StringVector documentationVector(StringVector obj)
    • declarationFile

      public String declarationFile()
      File that this Enum is declared in.
    • declarationFileAsByteBuffer

      public ByteBuffer declarationFileAsByteBuffer()
    • declarationFileInByteBuffer

      public ByteBuffer declarationFileInByteBuffer(ByteBuffer _bb)
    • createEnum

      public static int createEnum(FlatBufferBuilder builder, int nameOffset, int valuesOffset, boolean isUnion, int underlyingTypeOffset, int attributesOffset, int documentationOffset, int declarationFileOffset)
    • startEnum

      public static void startEnum(FlatBufferBuilder builder)
    • addName

      public static void addName(FlatBufferBuilder builder, int nameOffset)
    • addValues

      public static void addValues(FlatBufferBuilder builder, int valuesOffset)
    • createValuesVector

      public static int createValuesVector(FlatBufferBuilder builder, int[] data)
    • startValuesVector

      public static void startValuesVector(FlatBufferBuilder builder, int numElems)
    • addIsUnion

      public static void addIsUnion(FlatBufferBuilder builder, boolean isUnion)
    • addUnderlyingType

      public static void addUnderlyingType(FlatBufferBuilder builder, int underlyingTypeOffset)
    • addAttributes

      public static void addAttributes(FlatBufferBuilder builder, int attributesOffset)
    • createAttributesVector

      public static int createAttributesVector(FlatBufferBuilder builder, int[] data)
    • startAttributesVector

      public static void startAttributesVector(FlatBufferBuilder builder, int numElems)
    • addDocumentation

      public static void addDocumentation(FlatBufferBuilder builder, int documentationOffset)
    • createDocumentationVector

      public static int createDocumentationVector(FlatBufferBuilder builder, int[] data)
    • startDocumentationVector

      public static void startDocumentationVector(FlatBufferBuilder builder, int numElems)
    • addDeclarationFile

      public static void addDeclarationFile(FlatBufferBuilder builder, int declarationFileOffset)
    • endEnum

      public static int endEnum(FlatBufferBuilder builder)
    • 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.
    • __lookup_by_key

      public static Enum __lookup_by_key(Enum obj, int vectorLocation, String key, ByteBuffer bb)