All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.tinyexpression.parser.BooleanFactorParser Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
package org.unlaxer.tinyexpression.parser;

import java.util.Set;

import org.unlaxer.util.Singletons;

public class BooleanFactorParser extends AbstractBooleanFactorParser implements TypedParser{

   @Override
  public org.unlaxer.parser.Parsers getLazyParsers() {
    return getLazyParsers(true);
  }

  @Override
  public boolean hasNakedVariableParser() {
    return true;
  }

  @Override
  public ExpressionTypes type() {
    return ExpressionTypes._boolean;
  }

  @Override
  public Set allTypes() {
    return allTypes;
  }

  @Override
  public Set otherTypes() {
    return otherTypes;
  }
  
  static Set allTypes = Set.of(
      Singletons.get(NumberFactorParser.class),
      Singletons.get(StringFactorParser.class),
      Singletons.get(BooleanFactorParser.class)
  );
  
  static Set otherTypes = Set.of(
      Singletons.get(NumberFactorParser.class),
      Singletons.get(StringFactorParser.class)
  );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy