org.codehaus.janino

Class Mod

public class Mod extends 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 desing change).

Field Summary
static shortABSTRACT
static shortANNOTATION
static shortENUM
static shortFINAL
static shortINTERFACE
static shortNATIVE
static shortNONE
static shortPACKAGE
static shortPPP
static shortPRIVATE
static shortPROTECTED
static shortPUBLIC
static shortSTATIC
static shortSTRICTFP
static shortSUPER
static shortSYNCHRONIZED
static shortSYNTHETIC
static shortTRANSIENT
static shortVOLATILE
Method Summary
static shortchangeAccess(short sh, short newAccess)
static booleanisPackageAccess(short sh)
static booleanisPrivateAccess(short sh)
static booleanisProtectedAccess(short sh)
static booleanisPublicAccess(short sh)
static StringshortToString(short sh)

Field Detail

ABSTRACT

public static final short ABSTRACT

ANNOTATION

public static final short ANNOTATION

ENUM

public static final short ENUM

FINAL

public static final short FINAL

INTERFACE

public static final short INTERFACE

NATIVE

public static final short NATIVE

NONE

public static final short NONE

PACKAGE

public static final short PACKAGE

PPP

public static final short PPP

PRIVATE

public static final short PRIVATE

PROTECTED

public static final short PROTECTED

PUBLIC

public static final short PUBLIC

STATIC

public static final short STATIC

STRICTFP

public static final short STRICTFP

SUPER

public static final short SUPER

SYNCHRONIZED

public static final short SYNCHRONIZED

SYNTHETIC

public static final short SYNTHETIC

TRANSIENT

public static final short TRANSIENT

VOLATILE

public static final short VOLATILE

Method Detail

changeAccess

public static short changeAccess(short sh, short newAccess)

isPackageAccess

public static boolean isPackageAccess(short sh)

isPrivateAccess

public static boolean isPrivateAccess(short sh)

isProtectedAccess

public static boolean isProtectedAccess(short sh)

isPublicAccess

public static boolean isPublicAccess(short sh)

shortToString

public static String shortToString(short sh)