Class CheckUtils
- java.lang.Object
-
- org.sonar.javascript.checks.utils.CheckUtils
-
public class CheckUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringasString(Tree tree)static ControlFlowGraphbuildControlFlowGraph(Tree tree)static TreegetFirstAncestor(Tree tree, Kinds... kind)static booleanisDescendant(Tree tree, Tree potentialParent)static TreeparentIgnoreParentheses(Tree tree)static List<String>readLines(JavaScriptFile file)static ExpressionTreeremoveParenthesis(ExpressionTree expressionTree)
-
-
-
Method Detail
-
removeParenthesis
public static ExpressionTree removeParenthesis(ExpressionTree expressionTree)
-
buildControlFlowGraph
public static ControlFlowGraph buildControlFlowGraph(Tree tree)
-
readLines
public static List<String> readLines(JavaScriptFile file)
-
-