| Package | Description |
|---|---|
| ai.grakn.graql | |
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.template | |
| ai.grakn.graql.internal.template.macro | |
| ai.grakn.migration.base |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilder.registerMacro(Macro macro) |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilderImpl.registerMacro(Macro macro) |
| Modifier and Type | Method and Description |
|---|---|
void |
TemplateParser.registerMacro(String name,
Macro macro)
Register a macro that can be used in any template parsed by this class.
|
| Constructor and Description |
|---|
TemplateVisitor(org.antlr.v4.runtime.CommonTokenStream tokens,
Map<String,Object> context,
Map<String,Macro<?>> macros) |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanMacro
Templating function that will convert the given value into a boolean (true/false).
|
class |
ConcatMacro
Concatenate all of the given values to a string.
|
class |
DateMacro
Parse the given value (arg1) using the format (arg2) into another format (arg3).
|
class |
DoubleMacro
Convert the given value into a boolean (true/false).
|
class |
EqualsMacro
Compares the given values.
|
class |
IntMacro
Convert the given value into an integer.
|
class |
LongMacro
Convert the given value into a long.
|
class |
LowerMacro
Convert the given value into an lower case string.
|
class |
NoescpMacro
Convert the given value into an unescaped.
|
class |
SplitMacro
Templating function that splits the given value based on the given character.
|
class |
StringMacro
Convert the given value into a quoted string.
|
class |
UpperMacro
Convert the given value into an upper case string.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractMigrator |
AbstractMigrator.registerMacro(Macro macro)
Register a macro to use in templating
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.