Package com.clevercloud.biscuit.datalog
Class SymbolTable
- java.lang.Object
-
- com.clevercloud.biscuit.datalog.SymbolTable
-
- All Implemented Interfaces:
Serializable
public final class SymbolTable extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortDEFAULT_SYMBOLS_OFFSETstatic List<String>defaultSymbolsDue 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 indefaultSymbolslist * one for the usages symbols indexed from 1024 insymbolslistList<String>symbols
-
Constructor Summary
Constructors Constructor Description SymbolTable()SymbolTable(SymbolTable s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Termadd(String symbol)io.vavr.control.Option<Long>get(String symbol)io.vavr.control.Option<String>get_s(int i)List<String>getAllSymbols()longinsert(String symbol)Stringprint_check(Check c)Stringprint_expression(Expression e)Stringprint_fact(Fact f)Stringprint_id(Term value)Stringprint_predicate(Predicate p)Stringprint_rule(Rule r)Stringprint_rule_body(Rule r)Stringprint_symbol(int i)Stringprint_world(World w)
-
-
-
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 indefaultSymbolslist * one for the usages symbols indexed from 1024 insymbolslist
-
-
Constructor Detail
-
SymbolTable
public SymbolTable()
-
SymbolTable
public SymbolTable(SymbolTable s)
-
-
Method Detail
-
insert
public long insert(String symbol)
-
get_s
public io.vavr.control.Option<String> get_s(int i)
-
print_expression
public String print_expression(Expression e)
-
print_symbol
public String print_symbol(int i)
-
-