|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.MethodInfo
public class MethodInfo
Default implementation of IMethodInfo.
| Constructor Summary | |
|---|---|
MethodInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset,
int decodingFlags)
|
|
| Method Summary | |
|---|---|
int |
getAccessFlags()
Answer back the access flags of this method info as specified in the JVM specifications. |
int |
getAttributeCount()
Answer back the attribute number of the method info. |
IClassFileAttribute[] |
getAttributes()
Answer back the collection of all attributes of the method info. |
ICodeAttribute |
getCodeAttribute()
Answer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES. |
char[] |
getDescriptor()
Answer back the method descriptor of this method info as specified in the JVM specifications. |
int |
getDescriptorIndex()
Answer back the descriptor index of this method info. |
IExceptionAttribute |
getExceptionAttribute()
Answer the exception attribute of this method info, null is none. |
char[] |
getName()
Answer back the name of this method info as specified in the JVM specifications. |
int |
getNameIndex()
Answer back the name index of this method info. |
boolean |
isClinit()
Answer true if this method info represents a <clinit> method, false otherwise. |
boolean |
isConstructor()
Answer true if this method info represents a constructor, false otherwise. |
boolean |
isDeprecated()
Answer true if this method info has a deprecated attribute, false otherwise. |
boolean |
isSynthetic()
Return true if the method info is synthetic according to the JVM specification, false otherwise. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct |
|---|
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodInfo(byte[] classFileBytes,
IConstantPool constantPool,
int offset,
int decodingFlags)
throws ClassFormatException
classFileBytes - byte[]constantPool - IConstantPooloffset - intdecodingFlags - int
ClassFormatException| Method Detail |
|---|
public int getAccessFlags()
IMethodInfo
getAccessFlags in interface IMethodInfoIMethodInfo.getAccessFlags()public int getAttributeCount()
IMethodInfo
getAttributeCount in interface IMethodInfoIMethodInfo.getAttributeCount()public IClassFileAttribute[] getAttributes()
IMethodInfo
getAttributes in interface IMethodInfoIMethodInfo.getAttributes()public ICodeAttribute getCodeAttribute()
IMethodInfo
getCodeAttribute in interface IMethodInfoIMethodInfo.getCodeAttribute()public char[] getDescriptor()
IMethodInfo
getDescriptor in interface IMethodInfoIMethodInfo.getDescriptor()public int getDescriptorIndex()
IMethodInfo
getDescriptorIndex in interface IMethodInfoIMethodInfo.getDescriptorIndex()public IExceptionAttribute getExceptionAttribute()
IMethodInfo
getExceptionAttribute in interface IMethodInfoIMethodInfo.getExceptionAttribute()public char[] getName()
IMethodInfo
getName in interface IMethodInfoIMethodInfo.getName()public int getNameIndex()
IMethodInfo
getNameIndex in interface IMethodInfoIMethodInfo.getNameIndex()public boolean isClinit()
IMethodInfo
isClinit in interface IMethodInfoIMethodInfo.isClinit()public boolean isConstructor()
IMethodInfo
isConstructor in interface IMethodInfoIMethodInfo.isConstructor()public boolean isDeprecated()
IMethodInfo
isDeprecated in interface IMethodInfoIMethodInfo.isDeprecated()public boolean isSynthetic()
IMethodInfoNote that prior to JDK 1.5, synthetic fields were always marked using
an attribute; with 1.5, synthetic fields can also be marked using
the IModifierConstants.ACC_SYNTHETIC flag.
isSynthetic in interface IMethodInfoIMethodInfo.isSynthetic()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||