Package jtb.cparser.customvisitor
Class StringFinder
- Object
-
- DepthFirstVisitor
-
- StringFinder
-
- All Implemented Interfaces:
Visitor
public class StringFinder extends DepthFirstVisitor
Identifies the strings in an C AST
-
-
Field Summary
Fields Modifier and Type Field Description HashMap<String,ArrayList<String>>
functionStringMapping
HashMap<String,ArrayList<String>>
stringMatrices
-
Constructor Summary
Constructors Constructor Description StringFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(FunctionDefinition n)
void
visit(PostfixExpression n)
-
Methods inherited from class DepthFirstVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Field Detail
-
stringMatrices
public HashMap<String,ArrayList<String>> stringMatrices
-
functionStringMapping
public HashMap<String,ArrayList<String>> functionStringMapping
-
-
Constructor Detail
-
StringFinder
public StringFinder()
-
-
Method Detail
-
visit
public void visit(FunctionDefinition n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(PostfixExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
-