Clover coverage report - net.sourceforge.astyleclipse Coverage Report
Coverage timestamp: 星期六 九月 23 2006 23:19:47 CST
file stats: LOC: 75   Methods: 4
NCLOC: 21   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ASBeautifierStack.java 0% 0% 0% 0%
coverage
 1    /*
 2    * :tabSize=8:indentSize=4:noTabs=true:maxLineLen=0:
 3    *
 4    * Copyright (c) 2001 Dirk Moebius.
 5    *
 6    * ASBeautifierStack.java - a wrapper class for a typesafe stack.
 7    *
 8    * Part of the C++ to Java port of AStyle, maintained by
 9    * Dirk Moebius (dmoebius@gmx.net).
 10    *
 11    * The "Artistic Style" project, including all files needed to compile it,
 12    * is free software; you can redistribute it and/or use it and/or modify it
 13    * under the terms of EITHER the "Artistic License" OR
 14    * the GNU Library General Public License as published by the Free Software
 15    * Foundation; either version 2 of the License, or (at your option) any later
 16    * version.
 17    *
 18    * This program is distributed in the hope that it will be useful,
 19    * but WITHOUT ANY WARRANTY; without even the implied warranty of
 20    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 21    *
 22    * You should have received a copy of EITHER the "Artistic License" or
 23    * the GNU Library General Public License along with this program.
 24    */
 25   
 26   
 27    package net.sourceforge.astyleclipse.astyle.util;
 28   
 29   
 30    import java.util.Stack;
 31    import net.sourceforge.astyleclipse.astyle.ASBeautifier;
 32   
 33   
 34    /**
 35    * This is a stack of <code>astyle.ASBeautifierStack</code> objects.
 36    */
 37    public class ASBeautifierStack extends Stack {
 38   
 39  0 public ASBeautifierStack() {
 40  0 super();
 41    }
 42   
 43   
 44    /**
 45    * same as push()
 46    * @see java.util.Stack#push
 47    */
 48  0 public void push_back(ASBeautifier obj) {
 49  0 super.push(obj);
 50    }
 51   
 52   
 53    /**
 54    * same as pop()
 55    * @see java.util.Stack#pop
 56    */
 57  0 public synchronized ASBeautifier pop_back() {
 58  0 if (empty())
 59  0 throw new Error("empty stack");
 60  0 return (ASBeautifier) super.pop();
 61    }
 62   
 63   
 64    /**
 65    * same as peek()
 66    * @see java.util.Stack#peek
 67    */
 68  0 public synchronized ASBeautifier back() {
 69  0 if (empty())
 70  0 throw new Error("empty stack");
 71  0 return (ASBeautifier) super.peek();
 72    }
 73   
 74    }
 75