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

Class ParserPowerAst

  • All Implemented Interfaces:
    TokenParser


    public class ParserPowerAst
    extends java.lang.Object
    implements TokenParser
    Parser for powers of form a**b.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static ParserPowerAst 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 ParserPowerAst 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.