org.codehaus.janino
Class Mod

java.lang.Object
  extended by 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
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
static short changeAccess(short sh, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 sh,
                                 short newAccess)

shortToString

public static java.lang.String shortToString(short sh)


Copyright © 2001-2011. All Rights Reserved.