Class ArrayInitHandler


  • public class ArrayInitHandler
    extends BlockParentHandler
    Handler for array initialization blocks.
    • Field Detail

      • NOT_EXIST

        private static final int NOT_EXIST
        Constant to define that the required character does not exist at any position.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArrayInitHandler

        public ArrayInitHandler​(IndentationCheck indentCheck,
                                DetailAST ast,
                                AbstractExpressionHandler parent)
        Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
        Parameters:
        indentCheck - the indentation check
        ast - the abstract syntax tree
        parent - the parent handler
    • Method Detail

      • getNextFirstNonBlankOnLineAfter

        private int getNextFirstNonBlankOnLineAfter​(int lineNo,
                                                    int columnNo)
        Returns column number of first non-blank char after specified column on specified line or NOT_EXIST if such char doesn't exist.
        Parameters:
        lineNo - number of line on which we search
        columnNo - number of column after which we search
        Returns:
        column number of first non-blank char after specified column on specified line or NOT_EXIST if such char doesn't exist.
      • getLineWrappingIndentation

        private int getLineWrappingIndentation()
        A shortcut for IndentationCheck property.
        Returns:
        value of lineWrappingIndentation property of IndentationCheck