Class Schema

java.lang.Object
com.mackenziehigh.sexpr.Schema

public final class Schema extends Object
An instance of this class can be used to determine whether a symbolic-expression matches a pattern.
  • Method Details

    • match

      public Schema.Match match(Sexpr<?> input)
      This method determines whether the given symbolic-expression obeys this schema.
      Parameters:
      input - is the symbolic-expression that this schema may match.
      Returns:
      an object that describes the whether the match was successful or not.
    • newBuilder

      public static Schema.Builder newBuilder()
      Builder Factory.
      Returns:
      an object that can be used to build a Schema object.