|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
public class MethodInfo
| Field Summary | |
|---|---|
protected int |
accessFlags
|
protected char[][] |
argumentNames
|
protected int |
argumentNamesIndex
|
protected int |
attributeBytes
|
protected char[] |
descriptor
|
protected char[][] |
exceptionNames
|
protected char[] |
name
|
protected char[] |
signature
|
protected int |
signatureUtf8Offset
|
protected long |
tagBits
|
| Constructor Summary | |
|---|---|
protected |
MethodInfo(byte[] classFileBytes,
int[] offsets,
int offset)
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
static MethodInfo |
createMethod(byte[] classFileBytes,
int[] offsets,
int offset)
|
boolean |
equals(Object o)
|
IBinaryAnnotation[] |
getAnnotations()
Answer the runtime visible and invisible annotations for this method or null if none. |
char[][] |
getArgumentNames()
Answer the names of the argument or null if the argument names are not available. |
Object |
getDefaultValue()
Return ClassSignature for a Class Class. |
char[][] |
getExceptionTypeNames()
Answer the resolved names of the exception types in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty. |
char[] |
getGenericSignature()
Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec. |
char[] |
getMethodDescriptor()
Answer the receiver's method descriptor which describes the parameter & return types as specified in section 4.3.3 of the Java 2 VM spec. |
int |
getModifiers()
Answer an int whose bits are set according the access constants defined by the VM spec. |
IBinaryAnnotation[] |
getParameterAnnotations(int index)
Answer the annotations on the indexth parameter or null if none |
char[] |
getSelector()
Answer the name of the method. |
long |
getTagBits()
Answer the tagbits set according to the bits for annotations. |
int |
hashCode()
|
protected void |
initialize()
This method is used to fully initialize the contents of the receiver. |
boolean |
isClinit()
Answer true if the method is a class initializer, false otherwise. |
boolean |
isConstructor()
Answer true if the method is a constructor, false otherwise. |
boolean |
isSynthetic()
Return true if the field is a synthetic method, false otherwise. |
int |
sizeInBytes()
Answer the size of the receiver in bytes. |
String |
toString()
|
protected void |
toStringContent(StringBuffer buffer)
|
| Methods inherited from class org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct |
|---|
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8At |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int accessFlags
protected int attributeBytes
protected char[] descriptor
protected char[][] exceptionNames
protected char[] name
protected char[] signature
protected int signatureUtf8Offset
protected long tagBits
protected char[][] argumentNames
protected int argumentNamesIndex
| Constructor Detail |
|---|
protected MethodInfo(byte[] classFileBytes,
int[] offsets,
int offset)
classFileBytes - byte[]offsets - int[]offset - int| Method Detail |
|---|
public static MethodInfo createMethod(byte[] classFileBytes,
int[] offsets,
int offset)
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic IBinaryAnnotation[] getAnnotations()
IBinaryMethod
getAnnotations in interface IBinaryMethodpublic char[][] getArgumentNames()
IGenericMethod
getArgumentNames in interface IGenericMethodIGenericMethod.getArgumentNames()public Object getDefaultValue()
IBinaryMethodClassSignature for a Class Class.
Return Constant for compile-time constant of primitive type, as well as String literals.
Return EnumConstantSignature if value is an enum constant.
Return IBinaryAnnotation for annotation type.
Return Object[] for array type.
getDefaultValue in interface IBinaryMethodpublic char[][] getExceptionTypeNames()
getExceptionTypeNames in interface IBinaryMethodpublic char[] getGenericSignature()
IBinaryMethod
getGenericSignature in interface IBinaryMethodpublic char[] getMethodDescriptor()
getMethodDescriptor in interface IBinaryMethodpublic int getModifiers()
getModifiers in interface IGenericMethodpublic IBinaryAnnotation[] getParameterAnnotations(int index)
IBinaryMethodindexth parameter or null if none
getParameterAnnotations in interface IBinaryMethodindex - the index of the parameter of interestpublic char[] getSelector()
getSelector in interface IBinaryMethodpublic long getTagBits()
IBinaryMethod
getTagBits in interface IBinaryMethodprotected void initialize()
public boolean isClinit()
isClinit in interface IBinaryMethodpublic boolean isConstructor()
isConstructor in interface IGenericMethodpublic boolean isSynthetic()
public int sizeInBytes()
public String toString()
toString in class Objectprotected void toStringContent(StringBuffer buffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||