Package jtb.cparser.customvisitor
Class ConditionPrinter
- Object
-
- DepthFirstVisitor
-
- ConditionPrinter
-
- All Implemented Interfaces:
Visitor
public class ConditionPrinter extends DepthFirstVisitor
-
-
Constructor Summary
Constructors Constructor Description ConditionPrinter(String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
printExpression(Expression n)
void
setActualStrings(HashMap<String,ArrayList<String>> l)
void
setStringArrays(HashMap<String,ArrayList<String>> l)
void
visit(EqualityExpression n)
void
visit(FunctionDefinition n)
void
visit(IterationStatement n)
void
visit(LogicalANDExpression n)
void
visit(LogicalORExpression n)
void
visit(RelationalExpression n)
void
visit(SelectionStatement 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
-
-
-
-
Constructor Detail
-
ConditionPrinter
public ConditionPrinter(String fileName) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Throws:
IOException
-
setActualStrings
public void setActualStrings(HashMap<String,ArrayList<String>> l)
-
setStringArrays
public void setStringArrays(HashMap<String,ArrayList<String>> l)
-
visit
public void visit(FunctionDefinition n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(IterationStatement n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
printExpression
public void printExpression(Expression n)
-
visit
public void visit(SelectionStatement n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(LogicalANDExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(LogicalORExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(EqualityExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
public void visit(RelationalExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
-