Class RTEDUtils
- java.lang.Object
-
- com.crawljax.stateabstractions.dom.RTED.RTEDUtils
-
public class RTEDUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description RTEDUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static LblTreecreateTree(TreeWalker walker)Recursively construct a LblTree from DOM treeprivate static LblTreegetDomTree(String dom1)static doublegetRobustTreeEditDistance(String dom1, String dom2)Get a scalar value for the DOM diversity using the Robust Tree Edit Distance
-
-
-
Method Detail
-
getRobustTreeEditDistance
public static double getRobustTreeEditDistance(String dom1, String dom2)
Get a scalar value for the DOM diversity using the Robust Tree Edit Distance- Parameters:
dom1-dom2-- Returns:
-
getDomTree
private static LblTree getDomTree(String dom1) throws IOException
- Throws:
IOException
-
createTree
private static LblTree createTree(TreeWalker walker)
Recursively construct a LblTree from DOM tree- Parameters:
walker- tree walker for DOM tree traversal- Returns:
- tree represented by DOM tree
-
-