src/share/classes/com/sun/tools/javadoc/MethodDocImpl.java

changeset 1706
95d29b99e5b3
parent 1476
0e17c3c23e3b
child 2525
2eb010b6cb22
child 2906
d3a51adc115f
equal deleted inserted replaced
1705:891b88acf47a 1706:95d29b99e5b3
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, 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. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
201 sym.overrides(overridee, origin, env.types, false); 201 sym.overrides(overridee, origin, env.types, false);
202 } 202 }
203 203
204 204
205 public String name() { 205 public String name() {
206 return sym.name.toString(); 206 if (name == null) {
207 } 207 name = sym.name.toString();
208 }
209 return name;
210 }
211
212 private String name;
208 213
209 public String qualifiedName() { 214 public String qualifiedName() {
210 return sym.enclClass().getQualifiedName() + "." + sym.name; 215 if (qualifiedName == null) {
211 } 216 qualifiedName = sym.enclClass().getQualifiedName() + "." + sym.name;
217 }
218 return qualifiedName;
219 }
220
221 private String qualifiedName;
212 222
213 /** 223 /**
214 * Returns a string representation of this method. Includes the 224 * Returns a string representation of this method. Includes the
215 * qualified signature, the qualified method name, and any type 225 * qualified signature, the qualified method name, and any type
216 * parameters. Type parameters follow the class name, as they do 226 * parameters. Type parameters follow the class name, as they do

mercurial