< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TreeDiffer.java

Print this page




 574     }
 575 
 576     @Override
 577     public void visitTypeIntersection(JCTypeIntersection tree) {
 578         JCTypeIntersection that = (JCTypeIntersection) parameter;
 579         result = scan(tree.bounds, that.bounds);
 580     }
 581 
 582     @Override
 583     public void visitTypeParameter(JCTypeParameter tree) {
 584         JCTypeParameter that = (JCTypeParameter) parameter;
 585         result =
 586                 tree.name == that.name
 587                         && scan(tree.bounds, that.bounds)
 588                         && scan(tree.annotations, that.annotations);
 589     }
 590 
 591     @Override
 592     public void visitTypeTest(JCInstanceOf tree) {
 593         JCInstanceOf that = (JCInstanceOf) parameter;
 594         result = scan(tree.expr, that.expr) && scan(tree.clazz, that.clazz);
 595     }
 596 
 597     @Override
 598     public void visitTypeUnion(JCTypeUnion tree) {
 599         JCTypeUnion that = (JCTypeUnion) parameter;
 600         result = scan(tree.alternatives, that.alternatives);
 601     }
 602 
 603     @Override
 604     public void visitUnary(JCUnary tree) {
 605         JCUnary that = (JCUnary) parameter;
 606         result = scan(tree.arg, that.arg) && tree.operator == that.operator;
 607     }
 608 
 609     @Override
 610     public void visitUses(JCUses tree) {
 611         JCUses that = (JCUses) parameter;
 612         result = scan(tree.qualid, that.qualid);
 613     }
 614 




 574     }
 575 
 576     @Override
 577     public void visitTypeIntersection(JCTypeIntersection tree) {
 578         JCTypeIntersection that = (JCTypeIntersection) parameter;
 579         result = scan(tree.bounds, that.bounds);
 580     }
 581 
 582     @Override
 583     public void visitTypeParameter(JCTypeParameter tree) {
 584         JCTypeParameter that = (JCTypeParameter) parameter;
 585         result =
 586                 tree.name == that.name
 587                         && scan(tree.bounds, that.bounds)
 588                         && scan(tree.annotations, that.annotations);
 589     }
 590 
 591     @Override
 592     public void visitTypeTest(JCInstanceOf tree) {
 593         JCInstanceOf that = (JCInstanceOf) parameter;
 594         result = scan(tree.expr, that.expr) && scan(tree.pattern, that.pattern);
 595     }
 596 
 597     @Override
 598     public void visitTypeUnion(JCTypeUnion tree) {
 599         JCTypeUnion that = (JCTypeUnion) parameter;
 600         result = scan(tree.alternatives, that.alternatives);
 601     }
 602 
 603     @Override
 604     public void visitUnary(JCUnary tree) {
 605         JCUnary that = (JCUnary) parameter;
 606         result = scan(tree.arg, that.arg) && tree.operator == that.operator;
 607     }
 608 
 609     @Override
 610     public void visitUses(JCUses tree) {
 611         JCUses that = (JCUses) parameter;
 612         result = scan(tree.qualid, that.qualid);
 613     }
 614 


< prev index next >