Enum ParserStage.AcceptResult

    • Enum Constant Detail

      • COMPLETE_AFTER_CONSUMING

        public static final ParserStage.AcceptResult COMPLETE_AFTER_CONSUMING
        Complete the parsing stage and consider the current character as already consumed.
      • COMPLETE_WITHOUT_CONSUMING

        public static final ParserStage.AcceptResult COMPLETE_WITHOUT_CONSUMING
        Complete the parsing stage and reset the position of the buffer so that the next stage can consume the current character.
      • CANCEL

        public static final ParserStage.AcceptResult CANCEL
        Cancel the parsing process due to a failure to parse based on the current rules for this stage.
    • Method Detail

      • values

        public static ParserStage.AcceptResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ParserStage.AcceptResult c : ParserStage.AcceptResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ParserStage.AcceptResult valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null