Package jtb.cparser.customvisitor
Class Converter
- Object
-
- DepthFirstVisitor
-
- Converter
-
- All Implemented Interfaces:
Visitor
public class Converter extends DepthFirstVisitor
-
-
Field Summary
Fields Modifier and Type Field Description ArrayList<String>
actualStrings
ArrayList<String>
stringArrays
-
Constructor Summary
Constructors Constructor Description Converter()
-
Method Summary
-
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
-
-
-
-
Field Detail
-
actualStrings
public ArrayList<String> actualStrings
-
stringArrays
public ArrayList<String> stringArrays
-
-
Constructor Detail
-
Converter
public Converter()
-
-
Method Detail
-
visit
public void visit(PostfixExpression n)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
isInParentheses
public boolean isInParentheses(PostfixExpression n)
-
handleParenthesesExpression
public void handleParenthesesExpression(PostfixExpression n)
-
isMatrixAccess
public boolean isMatrixAccess(PostfixExpression n)
-
handleMatrixAccess
public void handleMatrixAccess(PostfixExpression n)
-
convertMatrixExpression
public void convertMatrixExpression(PostfixExpression n, Vector<Node> nodes1, Vector<Node> nodes2)
-
isArrayAccess
public boolean isArrayAccess(PostfixExpression n)
-
handleArrayAccess
public void handleArrayAccess(PostfixExpression n)
-
convertArrayExpression
public void convertArrayExpression(PostfixExpression n, Vector<Node> nodes, int i)
-
isFunctionCall
public boolean isFunctionCall(PostfixExpression n)
-
isFunctionCall
public boolean isFunctionCall(NodeSequence seq)
-
handleFunctionCall
public void handleFunctionCall(PostfixExpression n)
-
isStringArray
public boolean isStringArray(String n)
-
visit
public void visit(RelationalExpression 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(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
-
containsArrayAccess
public boolean containsArrayAccess(Expression n)
-
containsArrayAccess
public boolean containsArrayAccess(ShiftExpression n)
-
containsArrayAccess
public boolean containsArrayAccess(RelationalExpression n)
-
containsArrayAccess
public boolean containsArrayAccess(NodeOptional n)
-
-