public class PositionConfigureUtils
extends java.lang.Object
Constructor and Description |
---|
PositionConfigureUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends ASTNode> |
configureAST(T astNode,
ASTNode source) |
static <T extends ASTNode> |
configureAST(T astNode,
ASTNode start,
ASTNode stop) |
static <T extends ASTNode> |
configureAST(T astNode,
GroovyParser.GroovyParserRuleContext ctx)
Sets location(lineNumber, colNumber, lastLineNumber, lastColumnNumber) for node using standard context information.
|
static <T extends ASTNode> |
configureAST(T astNode,
GroovyParser.GroovyParserRuleContext ctx,
ASTNode stop) |
static <T extends ASTNode> |
configureAST(T astNode,
org.antlr.v4.runtime.tree.TerminalNode terminalNode) |
static <T extends ASTNode> |
configureAST(T astNode,
org.antlr.v4.runtime.Token token) |
static <T extends ASTNode> |
configureEndPosition(T astNode,
org.antlr.v4.runtime.Token token) |
static Tuple2<java.lang.Integer,java.lang.Integer> |
endPosition(org.antlr.v4.runtime.Token token) |
public static <T extends ASTNode> T configureAST(T astNode, GroovyParser.GroovyParserRuleContext ctx)
astNode
- Node to be modified.ctx
- Context from which information is obtained.public static Tuple2<java.lang.Integer,java.lang.Integer> endPosition(org.antlr.v4.runtime.Token token)
public static <T extends ASTNode> T configureAST(T astNode, org.antlr.v4.runtime.tree.TerminalNode terminalNode)
public static <T extends ASTNode> T configureAST(T astNode, org.antlr.v4.runtime.Token token)
public static <T extends ASTNode> T configureAST(T astNode, GroovyParser.GroovyParserRuleContext ctx, ASTNode stop)
public static <T extends ASTNode> void configureEndPosition(T astNode, org.antlr.v4.runtime.Token token)