public class GroovyUtils extends Object
| Constructor and Description |
|---|
GroovyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasValidSourceRegion(org.codehaus.groovy.ast.ASTNode node)
Returns true if given AST node looks to have correct source region definition:
1) first/last line/column number is >= 1 2) last line >= first line 3) in case of single line node, also last column >= first column |
static boolean |
isReportable(org.codehaus.groovy.ast.ASTNode node) |
static boolean |
isScriptClass(org.codehaus.groovy.ast.ASTNode node) |
static FixedSourceRegion |
newRegionFor(org.codehaus.groovy.ast.ASTNode statement) |
static FixedSourceRegion |
newRegionFor(org.codehaus.groovy.ast.ASTNode statement,
boolean evenIfUnreportable) |
public static FixedSourceRegion newRegionFor(org.codehaus.groovy.ast.ASTNode statement)
public static FixedSourceRegion newRegionFor(org.codehaus.groovy.ast.ASTNode statement, boolean evenIfUnreportable)
public static boolean isReportable(org.codehaus.groovy.ast.ASTNode node)
public static boolean hasValidSourceRegion(org.codehaus.groovy.ast.ASTNode node)
public static boolean isScriptClass(org.codehaus.groovy.ast.ASTNode node)
Copyright © 2024 OpenClover.org. All rights reserved.