| org.eclipse.jdt.core.util.IMethodInfo
All known Subclasses: org.eclipse.jdt.internal.core.util.MethodInfo,
IMethodInfo | public interface IMethodInfo (Code) | | Description of a method info as described in the JVM
specifications.
This interface may be implemented by clients.
since: 2.0 |
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. |
getAccessFlags | int getAccessFlags()(Code) | | Answer back the access flags of this method info as specified
in the JVM specifications.
the access flags of this method info as specifiedin the JVM specifications |
getAttributeCount | int getAttributeCount()(Code) | | Answer back the attribute number of the method info. It includes the CodeAttribute
if any even if the decoding flags doesn't include METHOD_BODIES.
the attribute number of the method info. It includes the CodeAttributeif any even if the decoding flags doesn't include METHOD_BODIES |
getAttributes | IClassFileAttribute[] getAttributes()(Code) | | Answer back the collection of all attributes of the method info. It
includes SyntheticAttribute, CodeAttributes, etc. It doesn't include the
CodeAttribute if the decoding flags doesn't include METHOD_BODIES.
Returns an empty collection if none.
the collection of all attributes of the method info. It includes SyntheticAttribute, CodeAttributes, etc. It doesn't include theCodeAttribute if the decoding flags doesn't include METHOD_BODIES.Returns an empty collection if none |
getCodeAttribute | ICodeAttribute getCodeAttribute()(Code) | | Answer the code attribute of this method info, null if none or if the decoding
flag doesn't include METHOD_BODIES.
the code attribute of this method info, null if none or if the decodingflag doesn't include METHOD_BODIES |
getDescriptor | char[] getDescriptor()(Code) | | Answer back the method descriptor of this method info as specified
in the JVM specifications.
the method descriptor of this method info as specifiedin the JVM specifications |
getDescriptorIndex | int getDescriptorIndex()(Code) | | Answer back the descriptor index of this method info.
the descriptor index of this method info |
getExceptionAttribute | IExceptionAttribute getExceptionAttribute()(Code) | | Answer the exception attribute of this method info, null is none.
the exception attribute of this method info, null is none |
getName | char[] getName()(Code) | | Answer back the name of this method info as specified
in the JVM specifications.
the name of this method info as specifiedin the JVM specifications |
getNameIndex | int getNameIndex()(Code) | | Answer back the name index of this method info.
the name index of this method info |
isClinit | boolean isClinit()(Code) | | Answer true if this method info represents a <clinit> method,
false otherwise.
true if this method info represents a <clinit> method,false otherwise |
isConstructor | boolean isConstructor()(Code) | | Answer true if this method info represents a constructor,
false otherwise.
true if this method info represents a constructor,false otherwise |
isDeprecated | boolean isDeprecated()(Code) | | Answer true if this method info has a deprecated attribute,
false otherwise.
true if this method info has a deprecated attribute,false otherwise |
isSynthetic | boolean isSynthetic()(Code) | | Return true if the method info is synthetic according to the JVM specification, false otherwise.
Note 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.
true if the method info is synthetic according to the JVM specification, false otherwise |
|
|