Package org.codehaus.janino
Class Mod
- java.lang.Object
-
- org.codehaus.janino.Mod
-
public final class Mod extends java.lang.Object
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
Fields Modifier and Type Field Description static short
ABSTRACT
static short
ANNOTATION
static short
ENUM
static short
FINAL
static short
INTERFACE
static short
NATIVE
static short
NONE
static short
PACKAGE
static short
PPP
static short
PRIVATE
static short
PROTECTED
static short
PUBLIC
static short
STATIC
static short
STRICTFP
static short
SUPER
static short
SYNCHRONIZED
static short
SYNTHETIC
static short
TRANSIENT
static short
VOLATILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.lang.String
shortToString(short sh)
-
-
-
Field Detail
-
NONE
public static final short NONE
- See Also:
- Constant Field Values
-
PUBLIC
public static final short PUBLIC
- See Also:
- Constant Field Values
-
PRIVATE
public static final short PRIVATE
- See Also:
- Constant Field Values
-
PROTECTED
public static final short PROTECTED
- See Also:
- Constant Field Values
-
PACKAGE
public static final short PACKAGE
- See Also:
- Constant Field Values
-
PPP
public static final short PPP
- See Also:
- Constant Field Values
-
STATIC
public static final short STATIC
- See Also:
- Constant Field Values
-
FINAL
public static final short FINAL
- See Also:
- Constant Field Values
-
SUPER
public static final short SUPER
- See Also:
- Constant Field Values
-
SYNCHRONIZED
public static final short SYNCHRONIZED
- See Also:
- Constant Field Values
-
VOLATILE
public static final short VOLATILE
- See Also:
- Constant Field Values
-
TRANSIENT
public static final short TRANSIENT
- See Also:
- Constant Field Values
-
NATIVE
public static final short NATIVE
- See Also:
- Constant Field Values
-
INTERFACE
public static final short INTERFACE
- See Also:
- Constant Field Values
-
ABSTRACT
public static final short ABSTRACT
- See Also:
- Constant Field Values
-
STRICTFP
public static final short STRICTFP
- See Also:
- Constant Field Values
-
SYNTHETIC
public static final short SYNTHETIC
- See Also:
- Constant Field Values
-
ANNOTATION
public static final short ANNOTATION
- See Also:
- Constant Field Values
-
ENUM
public static final short ENUM
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static java.lang.String shortToString(short sh)
-
-