Uses of Class
com.crawljax.stateabstractions.dom.apted.node.AptedNode
-
-
Uses of AptedNode in com.crawljax.stateabstractions.dom.apted.costmodel
Methods in com.crawljax.stateabstractions.dom.apted.costmodel with parameters of type AptedNode Modifier and Type Method Description floatCostModel. del(AptedNode<D> n)Calculates the cost of deleting a node.floatPerEditOperationStringNodeDataCostModel. del(AptedNode<StringNodeData> n)Calculates the cost of deleting a node.floatStringUnitCostModel. del(AptedNode<StringNodeData> n)Calculates the cost of deleting a node.floatCostModel. ins(AptedNode<D> n)Calculates the cost of inserting a node.floatPerEditOperationStringNodeDataCostModel. ins(AptedNode<StringNodeData> n)Calculates the cost of inserting a node.floatStringUnitCostModel. ins(AptedNode<StringNodeData> n)Calculates the cost of inserting a node.floatCostModel. ren(AptedNode<D> n1, AptedNode<D> n2)Calculates the cost of renaming (mapping) two nodes.floatPerEditOperationStringNodeDataCostModel. ren(AptedNode<StringNodeData> n1, AptedNode<StringNodeData> n2)Calculates the cost of renaming the string labels of two nodes.floatStringUnitCostModel. ren(AptedNode<StringNodeData> n1, AptedNode<StringNodeData> n2)Calculates the cost of renaming the label of the source node to the label of the destination node. -
Uses of AptedNode in com.crawljax.stateabstractions.dom.apted.distance
Methods in com.crawljax.stateabstractions.dom.apted.distance with parameters of type AptedNode Modifier and Type Method Description floatAllPossibleMappingsTED. computeEditDistance(AptedNode<D> t1, AptedNode<D> t2)Computes the tree edit distance between two trees by trying all possible TED mappings.floatAPTED. computeEditDistance(AptedNode<D> t1, AptedNode<D> t2)Compute tree edit distance between source and destination trees using APTED algorithm [1,2].floatAPTED. computeEditDistance_spfTest(AptedNode<D> t1, AptedNode<D> t2, int spfType)This method is only for testing purspose.voidAllPossibleMappingsTED. init(AptedNode<D> t1, AptedNode<D> t2)Indexes the input trees.voidAPTED. init(AptedNode<D> t1, AptedNode<D> t2)Initialises node indexers and stores input tree sizes. -
Uses of AptedNode in com.crawljax.stateabstractions.dom.apted.node
Fields in com.crawljax.stateabstractions.dom.apted.node declared as AptedNode Modifier and Type Field Description AptedNode<D>[]NodeIndexer. preL_to_nodeIndex from left-to-right preorder id of node n (starting with0) to AptedNode object corresponding to n.Fields in com.crawljax.stateabstractions.dom.apted.node with type parameters of type AptedNode Modifier and Type Field Description private List<AptedNode<D>>AptedNode. childrenArray of pointers to this node's children.Methods in com.crawljax.stateabstractions.dom.apted.node that return AptedNode Modifier and Type Method Description AptedNode<D>NodeIndexer. postL_to_node(int postL)An abbreviation that uses indices to retrieve pointer toAptedNodeof the given node.AptedNode<D>NodeIndexer. postR_to_node(int postR)An abbreviation that uses indices to retrieve pointer toAptedNodeof the given node.Methods in com.crawljax.stateabstractions.dom.apted.node that return types with arguments of type AptedNode Modifier and Type Method Description List<AptedNode<D>>AptedNode. getChildren()Returns the list with all node's children.Methods in com.crawljax.stateabstractions.dom.apted.node with parameters of type AptedNode Modifier and Type Method Description voidAptedNode. addChild(AptedNode c)Adds a new child at the end of children list.private intNodeIndexer. indexNodes(AptedNode<D> node, int postorder)Indexes the nodes of the input tree.Constructors in com.crawljax.stateabstractions.dom.apted.node with parameters of type AptedNode Constructor Description NodeIndexer(AptedNode<D> inputTree, C costModel)Indexes the nodes of input trees and stores the indices for quick access from APTED algorithm. -
Uses of AptedNode in com.crawljax.stateabstractions.dom.apted.parser
Methods in com.crawljax.stateabstractions.dom.apted.parser that return AptedNode Modifier and Type Method Description AptedNode<StringNodeData>BracketStringInputParser. fromString(String s)Parses the input tree as a string and converts it to our tree representation using theAptedNodeclass.AptedNode<D>InputParser. fromString(String s)Converst the input tree passed as string (e.g., bracket notation, XML) into the tree structure. -
Uses of AptedNode in com.crawljax.stateabstractions.dom.apted.util
Fields in com.crawljax.stateabstractions.dom.apted.util declared as AptedNode Modifier and Type Field Description private AptedNodeCommandLine. t1private AptedNodeCommandLine. t2Methods in com.crawljax.stateabstractions.dom.apted.util that return AptedNode Modifier and Type Method Description private static AptedNode<StringNodeData>AptedUtils. createTree(TreeWalker walker)Recursively construct a LblTree from DOM treestatic AptedNodeAptedUtils. getAptedTree(Fragment fragment, boolean visualData)static AptedNode<StringNodeData>AptedUtils. getAptedTree(Document doc, boolean visualData)static AptedNode<StringNodeData>AptedUtils. getAptedTree(Node node, boolean visualData)static AptedNode<StringNodeData>AptedUtils. getTextNode() -
Uses of AptedNode in com.crawljax.stateabstractions.hybrid.structuralvisualdiff
Methods in com.crawljax.stateabstractions.hybrid.structuralvisualdiff that return AptedNode Modifier and Type Method Description private AptedNode<StringNodeData>StructuralVisualDiff. getAPTEDTreeFromDocument(Node node)
-