|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
public class MethodInfo
| 字段摘要 | |
|---|---|
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
|
| 构造方法摘要 | |
|---|---|
protected |
MethodInfo(byte[] classFileBytes,
int[] offsets,
int offset)
|
| 方法摘要 | |
|---|---|
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)
|
| 从类 org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct 继承的方法 |
|---|
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8At |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
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
| 构造方法详细信息 |
|---|
protected MethodInfo(byte[] classFileBytes,
int[] offsets,
int offset)
classFileBytes - byte[]offsets - int[]offset - int| 方法详细信息 |
|---|
public static MethodInfo createMethod(byte[] classFileBytes,
int[] offsets,
int offset)
public int compareTo(Object o)
Comparable 中的 compareTopublic boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCodepublic IBinaryAnnotation[] getAnnotations()
IBinaryMethod 复制的描述
IBinaryMethod 中的 getAnnotationspublic char[][] getArgumentNames()
IGenericMethod 复制的描述
IGenericMethod 中的 getArgumentNamesIGenericMethod.getArgumentNames()public Object getDefaultValue()
IBinaryMethod 复制的描述ClassSignature 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.
IBinaryMethod 中的 getDefaultValuepublic char[][] getExceptionTypeNames()
IBinaryMethod 中的 getExceptionTypeNamespublic char[] getGenericSignature()
IBinaryMethod 复制的描述
IBinaryMethod 中的 getGenericSignaturepublic char[] getMethodDescriptor()
IBinaryMethod 中的 getMethodDescriptorpublic int getModifiers()
IGenericMethod 中的 getModifierspublic IBinaryAnnotation[] getParameterAnnotations(int index)
IBinaryMethod 复制的描述indexth parameter or null if none
IBinaryMethod 中的 getParameterAnnotationsindex - the index of the parameter of interestpublic char[] getSelector()
IBinaryMethod 中的 getSelectorpublic long getTagBits()
IBinaryMethod 复制的描述
IBinaryMethod 中的 getTagBitsprotected void initialize()
public boolean isClinit()
IBinaryMethod 中的 isClinitpublic boolean isConstructor()
IGenericMethod 中的 isConstructorpublic boolean isSynthetic()
public int sizeInBytes()
public String toString()
Object 中的 toStringprotected void toStringContent(StringBuffer buffer)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||