Class Operators.BeforeOperator

    • Method Detail

      • getStartingWithOperator

        public int getStartingWithOperator​(java.lang.String text)
        Description copied from class: DFOperator
        Calculates whether the input string is starting with the operator's String representation. If no, returns 0, if yes returns the position where the operator ends in the input text.

        By overriding this method you can define aliases for operator.
        To properly override this method you should call DFOperator.getStartingWith(java.lang.String, java.lang.String) for aliases and return the result if it is not 0. Return 0 if no alias returns number larger than 0.

        The method uses case insensitive strings.
        getStartingWithOperator in class DFOperator
        text - input string to test.
        0 when the input is not starting with operator, otherwise the position, where the operator ends.