Package org.codehaus.janino
Class Mod
java.lang.Object
org.codehaus.janino.Mod
This class defines constants and convenience methods for the handling of modifiers as defined by the JVM.
Notice: This class should be named IClass.IModifier
, but changing the name would break existing client
code. Thus it won't be renamed until there's a really good reason to do it (maybe with a major design change).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionstatic short
changeAccess
(short modifiers, short newAccess) static boolean
isPackageAccess
(short sh) static boolean
isPrivateAccess
(short sh) static boolean
isProtectedAccess
(short sh) static boolean
isPublicAccess
(short sh) static String
shortToString
(short sh)
-
Field Details
-
NONE
public static final short NONE- See Also:
-
PUBLIC
public static final short PUBLIC- See Also:
-
PRIVATE
public static final short PRIVATE- See Also:
-
PROTECTED
public static final short PROTECTED- See Also:
-
PACKAGE
public static final short PACKAGE- See Also:
-
PPP
public static final short PPP- See Also:
-
STATIC
public static final short STATIC- See Also:
-
FINAL
public static final short FINAL- See Also:
-
SUPER
public static final short SUPER- See Also:
-
SYNCHRONIZED
public static final short SYNCHRONIZED- See Also:
-
VOLATILE
public static final short VOLATILE- See Also:
-
TRANSIENT
public static final short TRANSIENT- See Also:
-
NATIVE
public static final short NATIVE- See Also:
-
INTERFACE
public static final short INTERFACE- See Also:
-
ABSTRACT
public static final short ABSTRACT- See Also:
-
STRICTFP
public static final short STRICTFP- See Also:
-
SYNTHETIC
public static final short SYNTHETIC- See Also:
-
ANNOTATION
public static final short ANNOTATION- See Also:
-
ENUM
public static final short ENUM- See Also:
-
-
Method Details
-
isPublicAccess
public static boolean isPublicAccess(short sh) -
isPrivateAccess
public static boolean isPrivateAccess(short sh) -
isProtectedAccess
public static boolean isProtectedAccess(short sh) -
isPackageAccess
public static boolean isPackageAccess(short sh) -
changeAccess
public static short changeAccess(short modifiers, short newAccess) -
shortToString
-