Class Function


public final class Function extends Factor
  • Constructor Details

    • Function

      protected Function(String identifier)
  • Method Details

    • create

      public final Node create(TypeManager typeManager, EntityModel entityModel)
      Description copied from class: Condition
      Creates a new node representing this condition.
      Specified by:
      create in class Condition
      Parameters:
      typeManager - the type manager as it might be required for creating nodes
      entityModel - the entity model which is the root of the query
    • isTrue

      public Function isTrue()
      Specifies to wrap this function in an IsTrueNode. For functions that return a boolean value, this would remove the need to create an Equation using a true literal on the other side.
    • arguments

      public Function arguments(Iterable<? extends Factor> values)
    • arguments

      public Function arguments(Factor... values)
    • literals

      public Function literals(Iterable<?> values)
      Adds all given arguments to the functions argument list.
    • literals

      public Function literals(Iterable<?> values, boolean asParameter)
    • literals

      public Function literals(Object... values)
      Adds all given arguments to the functions argument list.
    • paths

      public Function paths(String... paths)
      Adds the given path to the argument list of this function.
    • paths

      public Function paths(Iterable<String> paths)
      Adds all given paths to the functions argument list.
    • params

      public Function params(Iterable<String> params)
      Adds the given parameter names to the functions arguments.
    • params

      public Function params(String... params)
      Adds the given parameter names to the functions arguments.
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • iterator

      public Iterator<Factor> iterator()
    • get

      public Factor get(int index)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object