Path: blob/master/test/langtools/jdk/javadoc/doclet/testAnchorNames/pkg1/RegClass.java
40983 views
/*1* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223package pkg1;2425import java.io.Serializable;26import java.util.Map;2728/**29* @serial This is the serial tag's comment.30*/31public class RegClass implements Serializable {3233/**34* Normal field in class.35*/36public String field;3738/**39* Normal field in class.40*/41public String method$$;4243/**44* Filed staring with $.45*/46public String $field;4748/**49* Filed staring with underscore.50*/51public String _field;5253/**54* Serial field55* @serial56*/57public boolean t_e$t;5859/**60* Field in class with a $ in the name.61*/62public String fieldInCla$$;6364/**65* Field name as just an underscore.66*/67public int _;6869/**70* Field name as just a $.71*/72public int $;7374/**75* Field name with underscore and $.76*/77public int _$;7879/**80* Field name with $ and underscore.81*/82public int $_;8384/**85* An array.86*/87public int arr[];8889/**90* Another array.91*/92public int[] arr1;9394/**95* A constant field.96*/97public static final int S_$$$$$INT = 0;9899/**100* Another field.101*/102public DeprMemClass d____mc;103104/**105* An enum.106*/107public static enum Te$t_Enum {108FLD_1,109$FLD2110};111112/**113* A constructor.114*/115public RegClass(String p, int i) {116}117118/**119* Method in Class.120* @param p a string121*/122public void _methodInClass(String p) {123}124125/**126* Method in Class.127* @param p a string128* @param i an int129*/130public void _methodInClas$(String p, int i) {131}132133/**134* Method with $ in the name.135* @param p a string array136*/137public void methodInCla$s(String[] p) {138}139140/**141* Method with D[] as a parameter.142* @param p an array of D143*/144public void methodD(D[] p) {145}146147/**148* Method with $A as a parameter.149* @param p an object of $A150*/151public void methodD($A p) {152}153154/**155* Serial test.156* @serialData This is a serial data comment.157* @return null158*/159protected Object $readResolve(){return null;}160161/**162* Simple method.163*/164public void method() {}165166/**167* Generics.168*/169public static <A> void foo(Map<A, Map<A, A>> map) {}170171/**172* A nested class.173*/174public class _NestedClas$ {}175176/**177* Nested class D.178*/179class D {}180181/**182* Nested class $A.183*/184class $A {}185}186187188