/[classpath]/classpath/java/lang/reflect/Modifier.java
ViewVC logotype

Diff of /classpath/java/lang/reflect/Modifier.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.7 by mark, Thu Apr 4 08:37:55 2002 UTC
# Line 280  public class Modifier Line 280  public class Modifier
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>&lt;public|private|protected&gt; abstract static final transient     * <code>&lt;public|protected|private&gt; 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.
# Line 301  public class Modifier Line 301  public class Modifier
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))
# Line 315  public class Modifier Line 315  public class Modifier
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)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26