/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Class used to implement "-print" option.
*/
@SuppressWarnings("deprecation")
static class PrintingVisitors {
}
"",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
};
int indentation = this.indentation;
if (indentation < 0)
return "";
else if (indentation <= 10)
return spaces[indentation];
else {
while (indentation > 10) {
indentation -= 10;
}
}
}
PrePrinting(){}
printDocComment(d);
// Elide "extends Object"
printInterfaces(d);
PrintingVisitors.this.indentation++;
}
printDocComment(d);
printInterfaces(d);
PrintingVisitors.this.indentation++;
}
printDocComment(d);
printInterfaces(d);
PrintingVisitors.this.indentation++;
}
printDocComment(d);
printInterfaces(d);
PrintingVisitors.this.indentation++;
}
printDocComment(d);
(d.getDeclaringType() instanceof InterfaceDeclaration)?
d.getSimpleName() );
if (constantExpr != null) {
}
}
printDocComment(d);
}
printDocComment(d);
(d.getDeclaringType() instanceof InterfaceDeclaration)?
printParameters(d);
printThrows(d);
}
printDocComment(d);
printParameters(d);
printThrows(d);
}
}
PostPrinting(){}
PrintingVisitors.this.indentation--;
}
}
}
}
}
}
switch (size) {
case 0:
break;
case 1:
} else
}
break;
default:
{
int i = 1;
if (i == 2)
PrintingVisitors.this.indentation++;
if (i > 1)
} else
if (i < size)
i++;
}
PrintingVisitors.this.indentation--;
}
break;
}
}
if (docComment != null) {
// Break comment into lines
"\n\r");
while(st.hasMoreTokens()) {
}
}
}
}
}
}
}
return mods;
else {
return newMods;
}
}
printFormalTypeParameterSet(e.getFormalTypeParameters(), true);
}
printFormalTypeParameterSet(d.getFormalTypeParameters(), false);
}
private void printFormalTypeParameterSet(Collection<TypeParameterDeclaration> typeParams, boolean pad) {
boolean first = true;
if (!first)
}
if (pad)
}
}
boolean classNotInterface) {
boolean first = true;
if (!first)
first = false;
}
}
}
}
}
}
if (size != 0) {
int i = 1;
if (i == 1) {
}
if (i == 2)
PrintingVisitors.this.indentation++;
if (i >= 2)
if (i != size) {
}
i++;
}
if (size >= 2)
PrintingVisitors.this.indentation--;
}
}
new PostPrinting());
}
}
}
public void process() {
}
}