Skip to content

Commit

Permalink
Added missing characteristics on a number of existing Metapath functi…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
david-waltermire committed Jun 2, 2024
1 parent d5ccadd commit b58559d
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public class ArrayAppend {
public static final IFunction SIGNATURE = IFunction.builder()
.name("append")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public class ArrayFlatten {
static final IFunction SIGNATURE = IFunction.builder()
.name("flatten")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("input")
.type(IItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class ArrayGet {
public static final IFunction SIGNATURE = IFunction.builder()
.name("get")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public class ArrayHead {
static final IFunction SIGNATURE = IFunction.builder()
.name("head")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class ArrayInsertBefore {
public static final IFunction SIGNATURE = IFunction.builder()
.name("insert-before")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class ArrayJoin {
public static final IFunction SIGNATURE = IFunction.builder()
.name("join")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public class ArrayPut {
public static final IFunction SIGNATURE = IFunction.builder()
.name("put")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public class ArrayRemove {
public static final IFunction SIGNATURE = IFunction.builder()
.name("remove")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public class ArrayReverse {
public static final IFunction SIGNATURE = IFunction.builder()
.name("reverse")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class ArraySize {
static final IFunction SIGNATURE = IFunction.builder()
.name("size")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public class ArraySubarray {
public static final IFunction SIGNATURE_TWO_ARG = IFunction.builder()
.name("subarray")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand All @@ -67,6 +70,9 @@ public class ArraySubarray {
public static final IFunction SIGNATURE_THREE_ARG = IFunction.builder()
.name("subarray")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class ArrayTail {
static final IFunction SIGNATURE = IFunction.builder()
.name("tail")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS_ARRAY)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("array")
.type(IArrayItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ static <ITEM extends IAnyAtomicItem> IFunction signature(
return IFunction.builder()
.name(name)
.namespace(namespace)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("arg1")
.type(IAnyAtomicItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public final class FnStartsWith {
static final IFunction SIGNATURE = IFunction.builder()
.name("starts-with")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS)
.deterministic()
.contextDependent()
.focusIndependent()
.argument(IArgument.builder()
.name("arg1").type(IStringItem.class)
.zeroOrOne()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public final class FnStaticBaseUri {
static final IFunction SIGNATURE = IFunction.builder()
.name("static-base-uri")
.namespace(MetapathConstants.NS_METAPATH_FUNCTIONS)
.deterministic()
.contextDependent()
.focusIndependent()
.argument(IArgument.builder()
.name("arg1")
.type(IStringItem.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ static IFunction signature(@NonNull String namespace, @NonNull String name, @Non
return IFunction.builder()
.name(name)
.namespace(namespace)
.deterministic()
.contextIndependent()
.focusIndependent()
.argument(IArgument.builder()
.name("arg1")
.type(INumericItem.class)
Expand Down

0 comments on commit b58559d

Please sign in to comment.