src/jdk/nashorn/internal/ir/WhileNode.java

Print this page




 131      * @return true if do while
 132      */
 133     public boolean isDoWhile() {
 134         return isDoWhile;
 135     }
 136 
 137     @Override
 138     public void toString(final StringBuilder sb, final boolean printType) {
 139         sb.append("while (");
 140         test.toString(sb, printType);
 141         sb.append(')');
 142     }
 143 
 144     @Override
 145     public boolean mustEnter() {
 146         if (isDoWhile()) {
 147             return true;
 148         }
 149         return test == null;
 150     }





 151 }


 131      * @return true if do while
 132      */
 133     public boolean isDoWhile() {
 134         return isDoWhile;
 135     }
 136 
 137     @Override
 138     public void toString(final StringBuilder sb, final boolean printType) {
 139         sb.append("while (");
 140         test.toString(sb, printType);
 141         sb.append(')');
 142     }
 143 
 144     @Override
 145     public boolean mustEnter() {
 146         if (isDoWhile()) {
 147             return true;
 148         }
 149         return test == null;
 150     }
 151 
 152     @Override
 153     public boolean hasPerIterationScope() {
 154         return false;
 155     }
 156 }