langtools/test/tools/javac/MethodParameters/ClassFileVisitor.java
changeset 40316 20b50a99fe8d
parent 34752 9c262a013456
equal deleted inserted replaced
40315:9e994c77db6a 40316:20b50a99fe8d
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    50  * This is checked by assuming a design pattern where any name is permitted
    50  * This is checked by assuming a design pattern where any name is permitted
    51  * for the first explicit parameter. For subsequent parameters the following
    51  * for the first explicit parameter. For subsequent parameters the following
    52  * rule is checked: <i>param[n] == ++param[n-1].charAt(0) + param[n-1]</i>
    52  * rule is checked: <i>param[n] == ++param[n-1].charAt(0) + param[n-1]</i>
    53  * </ul>
    53  * </ul>
    54  */
    54  */
    55 class ClassFileVisitor extends Tester.Visitor {
    55 class ClassFileVisitor extends MethodParametersTester.Visitor {
    56 
    56 
    57     Tester tester;
    57     MethodParametersTester tester;
    58 
    58 
    59     public String cname;
    59     public String cname;
    60     public boolean isEnum;
    60     public boolean isEnum;
    61     public boolean isInterface;
    61     public boolean isInterface;
    62     public boolean isInner;
    62     public boolean isInner;
    64     public boolean isStatic;
    64     public boolean isStatic;
    65     public boolean isAnon;
    65     public boolean isAnon;
    66     public ClassFile classFile;
    66     public ClassFile classFile;
    67 
    67 
    68 
    68 
    69     public ClassFileVisitor(Tester tester) {
    69     public ClassFileVisitor(MethodParametersTester tester) {
    70         super(tester);
    70         super(tester);
    71     }
    71     }
    72 
    72 
    73     public void error(String msg) {
    73     public void error(String msg) {
    74         super.error("classfile: " + msg);
    74         super.error("classfile: " + msg);