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

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

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

import java.util.Optional;

import org.unlaxer.parser.ChildOccurs;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.Parsers;

@SuppressWarnings("serial")
public class NumberVariableMatchedWithVariableDeclarationParser extends VariableDeclarationMatchedTokenParser
    implements NumberExpression, VariableParser {

  public NumberVariableMatchedWithVariableDeclarationParser() {
    super(ExpressionTypes.number);
  }

  @Override
  public void prepareChildren(Parsers childrenContainer) {
  }

  @Override
  public ChildOccurs getChildOccurs() {
    return ChildOccurs.none;
  }

  @Override
  public Parser createParser() {
    return this;
  }

  @Override
  public Optional typeAsOptional() {
    return Optional.of(ExpressionTypes.number);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy