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

org.unlaxer.tinyexpression.parser.javalang.BooleanVariableDeclarationParser Maven / Gradle / Ivy

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

import java.util.Optional;

import org.unlaxer.Tag;
import org.unlaxer.parser.Parser;
import org.unlaxer.tinyexpression.parser.BooleanSetterParser;
import org.unlaxer.tinyexpression.parser.ExpressionType;
import org.unlaxer.tinyexpression.parser.ExpressionTypes;

@SuppressWarnings("serial")
public class BooleanVariableDeclarationParser extends AbstractVariableDeclarationParser {

  @Override
  public java.util.Optional typeDeclaration() {
    return java.util.Optional.of(
        Parser.newInstance(BooleanTypeDeclarationParser.class).addTag(typed, typeTag()));
  }

  @Override
  public Tag typeTag() {
    return Tag.of(BooleanVariableDeclarationParser.class);
  }

  @Override
  public Optional setter() {
    return Optional.of(
        new org.unlaxer.parser.combinator.Optional(
            BooleanSetterParser.class
        )
    );
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy