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

Class ParserNumber

  • All Implemented Interfaces:
    TokenParser


    public class ParserNumber
    extends java.lang.Object
    implements TokenParser
    Parser for numbers.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static ParserNumber 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 ParserNumber INSTANCE
        Singleton instance.
    • Method Detail

      • 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
      • priority

        public int priority()
        Description copied from interface: TokenParser
        The higher the priority, the earlier runs.
        Specified by:
        priority in interface TokenParser
        Returns:
        priority

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.