public final class AccessFlag
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AccessFlag.AccessTarget
Represents a construct which may have access flags applied to it.
|
static class |
AccessFlag.ClassFlag
Represents a flag applying to a class.
|
static class |
AccessFlag.FieldFlag
Represents a flag applying to a field.
|
static class |
AccessFlag.MethodFlag
Represents a flag applying to a method.
|
Constructor and Description |
---|
AccessFlag(AccessFlag.AccessTarget target,
byte first,
byte second)
Constructs a new access flag from the given bitmask.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<? extends java.lang.Enum> |
getFlags()
Gets all access flags set by this
AccessFlag . |
AccessFlag.AccessTarget |
getTargetType()
Gets the structure type which these flags apply to.
|
public AccessFlag(AccessFlag.AccessTarget target, byte first, byte second)
target
- The item type this flag applies tofirst
- The first byte of the bitmasksecond
- The second byte of the bitmaskpublic AccessFlag.AccessTarget getTargetType()
public java.util.Set<? extends java.lang.Enum> getFlags()
AccessFlag
.AccessFlag