Class SymbolTable

    • Field Detail

      • DEFAULT_SYMBOLS_OFFSET

        public static final short DEFAULT_SYMBOLS_OFFSET
        See Also:
        Constant Field Values
      • defaultSymbols

        public static final List<String> defaultSymbols
        Due to https://github.com/biscuit-auth/biscuit/blob/master/SPECIFICATIONS.md#symbol-table, We need two symbols tables: * one for the defaults symbols indexed from 0 et 1023 in defaultSymbols list * one for the usages symbols indexed from 1024 in symbols list
    • Constructor Detail

      • SymbolTable

        public SymbolTable()
    • Method Detail

      • insert

        public long insert​(String symbol)
      • get

        public io.vavr.control.Option<Long> get​(String symbol)
      • get_s

        public io.vavr.control.Option<String> get_s​(int i)
      • print_id

        public String print_id​(Term value)
      • print_rule

        public String print_rule​(Rule r)
      • print_rule_body

        public String print_rule_body​(Rule r)
      • print_fact

        public String print_fact​(Fact f)
      • print_symbol

        public String print_symbol​(int i)
      • getAllSymbols

        public List<String> getAllSymbols()