com.borland.jbuilder.jot.util
Class JotModifiers

java.lang.Object
  |
  +--com.borland.jbuilder.jot.util.JotModifiers

public class JotModifiers
extends java.lang.Object

JotModifiers provides helper methods to allow for the parsing of the int representation of java.lang.reflect.Modifier constants into a 'human readible' form.


Constructor Summary
JotModifiers()
           
 
Method Summary
static java.lang.String getModifier(int mod)
          Returns a String representation in canonical order of the modifier(s) represented by the int value passed in.
static int getModifier(java.lang.String modifier)
          Converts a space delimited list of modifiers into the appropriate int representation for the Modifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JotModifiers

public JotModifiers()
Method Detail

getModifier

public static java.lang.String getModifier(int mod)
Returns a String representation in canonical order of the modifier(s) represented by the int value passed in.

getModifier

public static int getModifier(java.lang.String modifier)
Converts a space delimited list of modifiers into the appropriate int representation for the Modifier. For example, passing in a modifier string of 'public static' will return the result of java.lang.reflect.Modifier.PUBLIC OR'd with the value of java.lang.reflect.Modifier.STATIC.