- All Known Implementing Classes:
UnboundAttribute.UnboundInnerClassInfo
Models a single inner class in the
InnerClassesAttribute.-
Method Summary
Modifier and TypeMethodDescriptiondefault Set<AccessFlag>flags()Returns a set of flag enums denoting access permissions and properties of the inner class.intReturns a bit mask of flags denoting access permissions and properties of the inner class.default booleanhas(AccessFlag flag) Returns whether a specific access flag is set.Returns the class described by this inner class description.Returns the name of the class or interface of which this class is a member, if it is a member of a class or interface.static InnerClassInfoReturns an inner class description.static InnerClassInfoof(ClassDesc innerClass, Optional<ClassDesc> outerClass, Optional<String> innerName, AccessFlag... flags) Returns an inner class description.static InnerClassInfoof(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns an inner class description.Returns the class or interface of which this class is a member, if it is a member of a class or interface.
-
Method Details
-
innerClass
ClassEntry innerClass()Returns the class described by this inner class description.- Returns:
- the class described by this inner class description
-
outerClass
Optional<ClassEntry> outerClass()Returns the class or interface of which this class is a member, if it is a member of a class or interface.- Returns:
- the class or interface of which this class is a member, if it is a member of a class or interface
-
innerName
Returns the name of the class or interface of which this class is a member, if it is a member of a class or interface.- Returns:
- the name of the class or interface of which this class is a member, if it is a member of a class or interface
-
flagsMask
int flagsMask()Returns a bit mask of flags denoting access permissions and properties of the inner class.- Returns:
- a bit mask of flags denoting access permissions and properties of the inner class
-
flags
Returns a set of flag enums denoting access permissions and properties of the inner class.- Returns:
- a set of flag enums denoting access permissions and properties of the inner class
-
has
Returns whether a specific access flag is set.- Parameters:
flag- the access flag- Returns:
- whether a specific access flag is set
-
of
static InnerClassInfo of(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flags) Returns an inner class description.- Parameters:
innerClass- the inner class being describedouterClass- the class containing the inner class, if anyinnerName- the name of the inner class, if it is not anonymousflags- the inner class access flags- Returns:
- an inner class description
-
of
static InnerClassInfo of(ClassDesc innerClass, Optional<ClassDesc> outerClass, Optional<String> innerName, int flags) Returns an inner class description.- Parameters:
innerClass- the inner class being describedouterClass- the class containing the inner class, if anyinnerName- the name of the inner class, if it is not anonymousflags- the inner class access flags- Returns:
- an inner class description
-
of
static InnerClassInfo of(ClassDesc innerClass, Optional<ClassDesc> outerClass, Optional<String> innerName, AccessFlag... flags) Returns an inner class description.- Parameters:
innerClass- the inner class being describedouterClass- the class containing the inner class, if anyinnerName- the name of the inner class, if it is not anonymousflags- the inner class access flags- Returns:
- an inner class description
-