public class ComponentInfo extends ClassFileStruct implements IComponent, java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected int |
attributeBytes |
protected char[] |
descriptor |
protected char[] |
name |
protected char[] |
signature |
protected int |
signatureUtf8Offset |
protected long |
tagBits |
protected long |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
ComponentInfo(byte[] classFileBytes,
int[] offsets,
int offset,
long version) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
static ComponentInfo |
createComponent(byte[] classFileBytes,
int[] offsets,
int offset,
long version) |
boolean |
equals(java.lang.Object o) |
IBinaryAnnotation[] |
getAnnotations()
Answer the runtime visible and invisible annotations for this component or null if none.
|
char[] |
getGenericSignature()
Answer the receiver's componentSignature, which describes the component's type
as specified in "4.7.9.1 Signatures" of the Java SE 8 VM spec.
|
char[] |
getName()
Answer the name of the component.
|
long |
getTagBits()
Answer the tagbits set according to the bits for annotations.
|
IBinaryTypeAnnotation[] |
getTypeAnnotations()
Answer the runtime visible and invisible type annotations for this component or null if none.
|
char[] |
getTypeName()
Answer the resolved name of the receiver's type in the
class file format as specified in section 4.3.2 of the Java 2 VM spec.
|
int |
hashCode() |
protected void |
initialize()
This method is used to fully initialize the contents of the receiver.
|
int |
sizeInBytes()
Answer the size of the receiver in bytes.
|
void |
throwFormatException() |
java.lang.String |
toString() |
protected void |
toStringContent(java.lang.StringBuffer buffer) |
protected int attributeBytes
protected char[] descriptor
protected char[] name
protected char[] signature
protected int signatureUtf8Offset
protected long tagBits
protected long version
protected ComponentInfo(byte[] classFileBytes,
int[] offsets,
int offset,
long version)
classFileBytes - byte[]offsets - int[]offset - intversion - class file versionpublic static ComponentInfo createComponent(byte[] classFileBytes, int[] offsets, int offset, long version)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic char[] getGenericSignature()
IComponentgetGenericSignature in interface IComponentpublic char[] getName()
getName in interface IComponentpublic long getTagBits()
IComponentgetTagBits in interface IComponentpublic char[] getTypeName()
getTypeName in interface IComponentpublic IBinaryAnnotation[] getAnnotations()
IComponentgetAnnotations in interface IComponentpublic IBinaryTypeAnnotation[] getTypeAnnotations()
IComponentgetTypeAnnotations in interface IComponentprotected void initialize()
public int sizeInBytes()
public void throwFormatException()
throws ClassFormatException
ClassFormatExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected void toStringContent(java.lang.StringBuffer buffer)