public static enum Bytecode.Visibility extends java.lang.Enum<Bytecode.Visibility>
Bytecode.getVisibility(org.objectweb.asm.tree.MethodNode) methods can be used to convert access
flags to this enum. The value returned from Enum.ordinal can then be
used to determine whether a visibility level is higher or lower
than any other given visibility level.| Enum Constant and Description |
|---|
PACKAGE
Members not decorated with any access flags
|
PRIVATE
Members decorated with
Opcodes.ACC_PRIVATE |
PROTECTED
Members decorated with
Opcodes.ACC_PROTECTED |
PUBLIC
Members decorated with
Opcodes.ACC_PUBLIC |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAtLeast(Bytecode.Visibility other)
Get whether this visibility level represents a level which is the
same or greater than the supplied level
|
static Bytecode.Visibility |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Bytecode.Visibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bytecode.Visibility PRIVATE
Opcodes.ACC_PRIVATEpublic static final Bytecode.Visibility PROTECTED
Opcodes.ACC_PROTECTEDpublic static final Bytecode.Visibility PACKAGE
public static final Bytecode.Visibility PUBLIC
Opcodes.ACC_PUBLICpublic static Bytecode.Visibility[] values()
for (Bytecode.Visibility c : Bytecode.Visibility.values()) System.out.println(c);
public static Bytecode.Visibility valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isAtLeast(Bytecode.Visibility other)
other - level to compare to