Documentation of 'cc.redberry.core.parser.ParserSum' Java class
ParserSum
cc.redberry.core.parser

Class ParserSum

  • All Implemented Interfaces:
    TokenParser


    public class ParserSum
    extends java.lang.Object
    Parser for mathematical sums.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static ParserSum INSTANCE
      Singleton instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ParseToken parseToken(java.lang.String expression, Parser parser)
      Parses the specified string expression and returns the corresponding AST node or null, string can not be parsed by this parser.
      int priority()
      The higher the priority, the earlier runs.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final ParserSum INSTANCE
        Singleton instance.
    • Method Detail

      • priority

        public int priority()
        Description copied from interface: TokenParser
        The higher the priority, the earlier runs.
        Returns:
        priority
      • parseToken

        public ParseToken parseToken(java.lang.String expression,
                                     Parser parser)
        Description copied from interface: TokenParser
        Parses the specified string expression and returns the corresponding AST node or null, string can not be parsed by this parser.
        Specified by:
        parseToken in interface TokenParser
        Parameters:
        expression - string expression
        parser - recursion
        Returns:
        AST node

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.