Package: org.apache.groovy.parser.antlr4.util

## [Java] Class PositionConfigureUtils

- org.apache.groovy.parser.antlr4.util.PositionConfigureUtils

- Utilities for configuring node positions

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static T` | `configureAST(T astNode, GroovyParserRuleContext ctx)` Sets location(lineNumber, colNumber, lastLineNumber, lastColumnNumber) for node using standard context information.
    `` | `static T` | `configureAST(T astNode, TerminalNode terminalNode)`
    `` | `static T` | `configureAST(T astNode, Token token)`
    `` | `static T` | `configureAST(T astNode, ASTNode source)`
    `` | `static T` | `configureAST(T astNode, GroovyParserRuleContext ctx, ASTNode stop)`
    `` | `static T` | `configureAST(T astNode, ASTNode start, ASTNode stop)`
    `` | `static void` | `configureEndPosition(T astNode, Token token)`
    `` | `static Tuple2<Integer, Integer>` | `endPosition(Token token)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### public static T configureAST(T astNode, GroovyParserRuleContext ctx)

      Sets location(lineNumber, colNumber, lastLineNumber, lastColumnNumber) for node using standard context information. Note: this method is implemented to be closed over ASTNode. It returns same node as it received in arguments.

      Parameters:
        `astNode` - Node to be modified.
        `ctx` - Context from which information is obtained.
      Returns:
        Modified astNode.

    - #### public static T configureAST(T astNode, TerminalNode terminalNode)

    - #### public static T configureAST(T astNode, Token token)

    - #### public static T configureAST(T astNode, ASTNode source)

    - #### public static T configureAST(T astNode, GroovyParserRuleContext ctx, ASTNode stop)

    - #### public static T configureAST(T astNode, ASTNode start, ASTNode stop)

    - #### public static void configureEndPosition(T astNode, Token token)

    - #### public static Tuple2<Integer, Integer> endPosition(Token token)