equal
deleted
inserted
replaced
641 @Override |
641 @Override |
642 public JCExpression setPos(int pos) { |
642 public JCExpression setPos(int pos) { |
643 super.setPos(pos); |
643 super.setPos(pos); |
644 return this; |
644 return this; |
645 } |
645 } |
|
646 |
|
647 public boolean isPoly() { return false; } |
|
648 public boolean isStandalone() { return true; } |
646 } |
649 } |
647 |
650 |
648 /** |
651 /** |
649 * Common supertype for all poly expression trees (lambda, method references, |
652 * Common supertype for all poly expression trees (lambda, method references, |
650 * conditionals, method and constructor calls) |
653 * conditionals, method and constructor calls) |
661 POLY |
664 POLY |
662 } |
665 } |
663 |
666 |
664 /** is this poly expression a 'true' poly expression? */ |
667 /** is this poly expression a 'true' poly expression? */ |
665 public PolyKind polyKind; |
668 public PolyKind polyKind; |
|
669 |
|
670 @Override public boolean isPoly() { return polyKind == PolyKind.POLY; } |
|
671 @Override public boolean isStandalone() { return polyKind == PolyKind.STANDALONE; } |
666 } |
672 } |
667 |
673 |
668 /** |
674 /** |
669 * Common supertype for all functional expression trees (lambda and method references) |
675 * Common supertype for all functional expression trees (lambda and method references) |
670 */ |
676 */ |