public static final class InnerClassesAttribute.InnerClass extends java.lang.Object implements Node
InnerClass
that can be found as a part of any InnerClassesAttribute
instances.
This class is not thread-safe.
Modifier and Type | Field and Description |
---|---|
static int |
ACC_ABSTRACT
This field represents ACC_ABSTRACT in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_ANNOTATION
This field represents ACC_ANNOTATION in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_ENUM
This field represents ACC_ENUM in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_FINAL
This field represents ACC_FINAL in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_INTERFACE
This field represents ACC_INTERFACE in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_PRIVATE
This field represents ACC_PRIVATE in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_PROTECTED
This field represents ACC_PROTECTED in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_PUBLIC
This field represents ACC_PUBLIC in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_STATIC
This field represents ACC_STATIC in the inner_class_access_flags element of an inner_class structure.
|
static int |
ACC_SYNTHETIC
This field represents ACC_SYNTHETIC in the inner_class_access_flags element of an inner_class structure.
|
Modifier and Type | Method and Description |
---|---|
InnerClassesAttribute.InnerClass |
copy()
Returns a copy of this
InnerClass instance. |
boolean |
equals(java.lang.Object object)
Returns
true if, and only if, object is an instance of InnerClass , and that InnerClass instance is equal to this InnerClass instance, false otherwise. |
int |
getInnerClassAccessFlags()
Returns the inner_class_access_flags value of this
InnerClass instance. |
int |
getInnerClassInfoIndex()
Returns the inner_class_info_index value of this
InnerClass instance. |
int |
getInnerNameIndex()
Returns the inner_name_index value of this
InnerClass instance. |
int |
getOuterClassInfoIndex()
Returns the outer_class_info_index value of this
InnerClass instance. |
int |
hashCode()
Returns a hash code for this
InnerClass instance. |
boolean |
isAbstract()
Returns
true if, and only if, ACC_ABSTRACT is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isAnnotation()
Returns
true if, and only if, ACC_ANNOTATION is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isClass()
Returns
true if, and only if, neither of ACC_ANNOTATION, ACC_ENUM and ACC_INTERFACE are set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isEnum()
Returns
true if, and only if, ACC_ENUM is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isFinal()
Returns
true if, and only if, ACC_FINAL is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isInterface()
Returns
true if, and only if, ACC_INTERFACE is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isPackageProtected()
Returns
true if, and only if, neither of ACC_PRIVATE, ACC_PROTECTED and ACC_PUBLIC are set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isPrivate()
Returns
true if, and only if, ACC_PRIVATE is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isProtected()
Returns
true if, and only if, ACC_PROTECTED is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isPublic()
Returns
true if, and only if, ACC_PUBLIC is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isStatic()
Returns
true if, and only if, ACC_STATIC is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
boolean |
isSynthetic()
Returns
true if, and only if, ACC_SYNTHETIC is set in the inner_class_access_flags item of this InnerClass instance, false otherwise. |
static InnerClassesAttribute.InnerClass |
newInstance()
Returns a new empty
InnerClass instance. |
void |
setInnerClassAccessFlags(int innerClassAccessFlags)
Sets a new inner_class_access_flags value for this
InnerClass instance. |
void |
setInnerClassInfoIndex(int innerClassInfoIndex)
Sets a new inner_class_info_index value for this
InnerClass instance. |
void |
setInnerNameIndex(int innerNameIndex)
Sets a new inner_name_index value for this
InnerClass instance. |
void |
setOuterClassInfoIndex(int outerClassInfoIndex)
Sets a new outer_class_info_index value for this
InnerClass instance. |
void |
write(java.io.DataOutput dataOutput)
Writes this
InnerClass to dataOutput . |
public static final int ACC_ABSTRACT
public static final int ACC_ANNOTATION
public static final int ACC_ENUM
public static final int ACC_FINAL
public static final int ACC_INTERFACE
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_PUBLIC
public static final int ACC_STATIC
public static final int ACC_SYNTHETIC
public InnerClassesAttribute.InnerClass copy()
InnerClass
instance.InnerClass
instancepublic boolean equals(java.lang.Object object)
true
if, and only if, object
is an instance of InnerClass
, and that InnerClass
instance is equal to this InnerClass
instance, false
otherwise.equals
in class java.lang.Object
object
- an Object
to compare to this InnerClass
instance for equalitytrue
if, and only if, object
is an instance of InnerClass
, and that InnerClass
instance is equal to this InnerClass
instance, false
otherwisepublic boolean isAbstract()
true
if, and only if, ACC_ABSTRACT is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_ABSTRACT is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isAnnotation()
true
if, and only if, ACC_ANNOTATION is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_ANNOTATION is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isClass()
true
if, and only if, neither of ACC_ANNOTATION, ACC_ENUM and ACC_INTERFACE are set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, neither of ACC_ANNOTATION, ACC_ENUM and ACC_INTERFACE are set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isEnum()
true
if, and only if, ACC_ENUM is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_ENUM is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isFinal()
true
if, and only if, ACC_FINAL is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_FINAL is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isInterface()
true
if, and only if, ACC_INTERFACE is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_INTERFACE is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isPackageProtected()
true
if, and only if, neither of ACC_PRIVATE, ACC_PROTECTED and ACC_PUBLIC are set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, neither of ACC_PRIVATE, ACC_PROTECTED and ACC_PUBLIC are set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isPrivate()
true
if, and only if, ACC_PRIVATE is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_PRIVATE is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isProtected()
true
if, and only if, ACC_PROTECTED is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_PROTECTED is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isPublic()
true
if, and only if, ACC_PUBLIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_PUBLIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isStatic()
true
if, and only if, ACC_STATIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_STATIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic boolean isSynthetic()
true
if, and only if, ACC_SYNTHETIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwise.true
if, and only if, ACC_SYNTHETIC is set in the inner_class_access_flags item of this InnerClass
instance, false
otherwisepublic int getInnerClassAccessFlags()
InnerClass
instance.InnerClass
instancepublic int getInnerClassInfoIndex()
InnerClass
instance.InnerClass
instancepublic int getInnerNameIndex()
InnerClass
instance.InnerClass
instancepublic int getOuterClassInfoIndex()
InnerClass
instance.InnerClass
instancepublic int hashCode()
InnerClass
instance.hashCode
in class java.lang.Object
InnerClass
instancepublic void setInnerClassAccessFlags(int innerClassAccessFlags)
InnerClass
instance.innerClassAccessFlags
- the new inner_class_access_flags valuepublic void setInnerClassInfoIndex(int innerClassInfoIndex)
InnerClass
instance.innerClassInfoIndex
- the new inner_class_info_index valuepublic void setInnerNameIndex(int innerNameIndex)
InnerClass
instance.innerNameIndex
- the new inner_name_index valuepublic void setOuterClassInfoIndex(int outerClassInfoIndex)
InnerClass
instance.outerClassInfoIndex
- the new outer_class_info_index valuepublic void write(java.io.DataOutput dataOutput)
InnerClass
to dataOutput
.
If dataOutput
is an OutputStream
(or any other type of stream), this method will not close it.
If dataOutput
is null
, a NullPointerException
will be thrown.
If an I/O-error occurs, an UncheckedIOException
will be thrown.
dataOutput
- the DataOutput
to write tojava.lang.NullPointerException
- thrown if, and only if, dataOutput
is null
java.io.UncheckedIOException
- thrown if, and only if, an I/O-error occurspublic static InnerClassesAttribute.InnerClass newInstance()
InnerClass
instance.InnerClass
instance