java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AccessFlagsImpl
- All Implemented Interfaces:
AccessFlags,ClassElement,ClassFileElement,FieldElement,MethodElement
-
Constructor Summary
ConstructorsConstructorDescriptionAccessFlagsImpl(AccessFlag.Location location, int mask) AccessFlagsImpl(AccessFlag.Location location, AccessFlag... flags) -
Method Summary
Modifier and TypeMethodDescriptionflags()Returns the access flags.intReturns the access flags, as a bit mask.booleanhas(AccessFlag flag) Returns whether the specified flag is present.location()Returns the classfile location for this element, which is either class, method, or field.toString()voidwriteTo(DirectClassBuilder builder) voidwriteTo(DirectFieldBuilder builder) voidwriteTo(DirectMethodBuilder builder) Methods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo
-
Constructor Details
-
AccessFlagsImpl
-
AccessFlagsImpl
-
-
Method Details
-
flagsMask
public int flagsMask()Description copied from interface:AccessFlagsReturns the access flags, as a bit mask.- Specified by:
flagsMaskin interfaceAccessFlags- Returns:
- the access flags, as a bit mask
-
flags
Description copied from interface:AccessFlagsReturns the access flags.- Specified by:
flagsin interfaceAccessFlags- Returns:
- the access flags
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
- Overrides:
writeToin classAbstractElement
-
location
Description copied from interface:AccessFlagsReturns the classfile location for this element, which is either class, method, or field.- Specified by:
locationin interfaceAccessFlags- Returns:
- the classfile location for this element, which is either class, method, or field
-
has
Description copied from interface:AccessFlagsReturns whether the specified flag is present. The specified flag should be a valid flag for the classfile location associated with this element otherwise false is returned.- Specified by:
hasin interfaceAccessFlags- Parameters:
flag- the flag to test- Returns:
- whether the specified flag is present
-
toString
-