All Implemented Interfaces:
FromSourceLocation, ToNode, Into<Condition>, TypeCheck

public final class StringEquals extends Function
A rule-set function for comparing strings for equality.
  • Field Details

  • Constructor Details

    • StringEquals

      public StringEquals(FunctionNode functionNode)
  • Method Details

    • ofExpressions

      public static Function ofExpressions(Expression left, Expression right)
      Constructs a function that compare the left and right expressions for string equality.
      Parameters:
      left - the left expression.
      right - the right expression.
      Returns:
      a function instance representing the StringEquals comparison.
    • accept

      public <R> R accept(ExpressionVisitor<R> visitor)
      Description copied from class: Expression
      Invoke the ExpressionVisitor functions for this expression.
      Specified by:
      accept in class Expression
      Type Parameters:
      R - the visitor return type.
      Parameters:
      visitor - the visitor to be invoked.
      Returns:
      the return value of the visitor.
    • typeCheckLocal

      protected Type typeCheckLocal(Scope<Type> scope) throws InnerParseError
      Specified by:
      typeCheckLocal in class Expression
      Throws:
      InnerParseError