280 |
/** |
/** |
281 |
* Get a string representation of all the modifiers represented by the |
* Get a string representation of all the modifiers represented by the |
282 |
* given int. The keywords are printed in this order: |
* given int. The keywords are printed in this order: |
283 |
* <code><public|private|protected> abstract static final transient |
* <code><public|protected|private> abstract static final transient |
284 |
* volatile native synchronized interface strictfp</code>. |
* volatile synchronized native strictfp interface</code>. |
285 |
* |
* |
286 |
* @param mod the modifier. |
* @param mod the modifier. |
287 |
* @return the String representing the modifiers. |
* @return the String representing the modifiers. |
301 |
{ |
{ |
302 |
if (isPublic(mod)) |
if (isPublic(mod)) |
303 |
r.append("public "); |
r.append("public "); |
|
if (isPrivate(mod)) |
|
|
r.append("private "); |
|
304 |
if (isProtected(mod)) |
if (isProtected(mod)) |
305 |
r.append("protected "); |
r.append("protected "); |
306 |
|
if (isPrivate(mod)) |
307 |
|
r.append("private "); |
308 |
if (isAbstract(mod)) |
if (isAbstract(mod)) |
309 |
r.append("abstract "); |
r.append("abstract "); |
310 |
if (isStatic(mod)) |
if (isStatic(mod)) |
315 |
r.append("transient "); |
r.append("transient "); |
316 |
if (isVolatile(mod)) |
if (isVolatile(mod)) |
317 |
r.append("volatile "); |
r.append("volatile "); |
|
if (isNative(mod)) |
|
|
r.append("native "); |
|
318 |
if (isSynchronized(mod)) |
if (isSynchronized(mod)) |
319 |
r.append("synchronized "); |
r.append("synchronized "); |
320 |
if (isInterface(mod)) |
if (isNative(mod)) |
321 |
r.append("interface "); |
r.append("native "); |
322 |
if (isStrict(mod)) |
if (isStrict(mod)) |
323 |
r.append("strictfp "); |
r.append("strictfp "); |
324 |
|
if (isInterface(mod)) |
325 |
|
r.append("interface "); |
326 |
|
|
327 |
// Trim trailing space. |
// Trim trailing space. |
328 |
if ((mod & ALL_FLAGS) != 0) |
if ((mod & ALL_FLAGS) != 0) |