Class BracketStringInputParser
- java.lang.Object
-
- com.crawljax.stateabstractions.dom.apted.parser.BracketStringInputParser
-
- All Implemented Interfaces:
InputParser<StringNodeData>
public class BracketStringInputParser extends Object implements InputParser<StringNodeData>
Parser for the input trees in the bracket notation with a single string-value label of typeStringNodeData.Bracket notation encodes the trees with nested parentheses, for example, in tree {A{B{X}{Y}{F}}{C}} the root node has label A and two children with labels B and C. AptedNode with label B has three children with labels X, Y, F.
- See Also:
AptedNode,StringNodeData
-
-
Constructor Summary
Constructors Constructor Description BracketStringInputParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AptedNode<StringNodeData>fromString(String s)Parses the input tree as a string and converts it to our tree representation using theAptedNodeclass.
-
-
-
Method Detail
-
fromString
public AptedNode<StringNodeData> fromString(String s)
Parses the input tree as a string and converts it to our tree representation using theAptedNodeclass.- Specified by:
fromStringin interfaceInputParser<StringNodeData>- Parameters:
s- input tree as string in bracket notation.- Returns:
- tree representation of the bracket notation input.
- See Also:
AptedNode
-
-