java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.MethodInfo
Alle implementierten Schnittstellen:
IMethodInfo

public class MethodInfo extends ClassFileStruct implements IMethodInfo
Default implementation of IMethodInfo.
  • Konstruktordetails

    • MethodInfo

      public MethodInfo(byte[] classFileBytes, IConstantPool constantPool, int offset, int decodingFlags) throws ClassFormatException
      Parameter:
      classFileBytes - byte[]
      constantPool - IConstantPool
      offset - int
      decodingFlags - int
      Löst aus:
      ClassFormatException
  • Methodendetails

    • getAccessFlags

      public int getAccessFlags()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer back the access flags of this method info as specified in the JVM specifications.
      Angegeben von:
      getAccessFlags in Schnittstelle IMethodInfo
      Gibt zurück:
      the access flags of this method info as specified in the JVM specifications
      Siehe auch:
    • getAttributeCount

      public int getAttributeCount()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      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.
      Angegeben von:
      getAttributeCount in Schnittstelle IMethodInfo
      Gibt zurück:
      the attribute number of the method info. It includes the CodeAttribute if any even if the decoding flags doesn't include METHOD_BODIES
      Siehe auch:
    • getAttributes

      public IClassFileAttribute[] getAttributes()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      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.
      Angegeben von:
      getAttributes in Schnittstelle IMethodInfo
      Gibt zurück:
      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
      Siehe auch:
    • getCodeAttribute

      public ICodeAttribute getCodeAttribute()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES.
      Angegeben von:
      getCodeAttribute in Schnittstelle IMethodInfo
      Gibt zurück:
      the code attribute of this method info, null if none or if the decoding flag doesn't include METHOD_BODIES
      Siehe auch:
    • getDescriptor

      public char[] getDescriptor()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer back the method descriptor of this method info as specified in the JVM specifications.
      Angegeben von:
      getDescriptor in Schnittstelle IMethodInfo
      Gibt zurück:
      the method descriptor of this method info as specified in the JVM specifications
      Siehe auch:
    • getDescriptorIndex

      public int getDescriptorIndex()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer back the descriptor index of this method info.
      Angegeben von:
      getDescriptorIndex in Schnittstelle IMethodInfo
      Gibt zurück:
      the descriptor index of this method info
      Siehe auch:
    • getExceptionAttribute

      public IExceptionAttribute getExceptionAttribute()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer the exception attribute of this method info, null is none.
      Angegeben von:
      getExceptionAttribute in Schnittstelle IMethodInfo
      Gibt zurück:
      the exception attribute of this method info, null is none
      Siehe auch:
    • getName

      public char[] getName()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer back the name of this method info as specified in the JVM specifications.
      Angegeben von:
      getName in Schnittstelle IMethodInfo
      Gibt zurück:
      the name of this method info as specified in the JVM specifications
      Siehe auch:
    • getNameIndex

      public int getNameIndex()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer back the name index of this method info.
      Angegeben von:
      getNameIndex in Schnittstelle IMethodInfo
      Gibt zurück:
      the name index of this method info
      Siehe auch:
    • isClinit

      public boolean isClinit()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer true if this method info represents a <clinit> method, false otherwise.
      Angegeben von:
      isClinit in Schnittstelle IMethodInfo
      Gibt zurück:
      true if this method info represents a <clinit> method, false otherwise
      Siehe auch:
    • isConstructor

      public boolean isConstructor()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer true if this method info represents a constructor, false otherwise.
      Angegeben von:
      isConstructor in Schnittstelle IMethodInfo
      Gibt zurück:
      true if this method info represents a constructor, false otherwise
      Siehe auch:
    • isDeprecated

      public boolean isDeprecated()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      Answer true if this method info has a deprecated attribute, false otherwise.
      Angegeben von:
      isDeprecated in Schnittstelle IMethodInfo
      Gibt zurück:
      true if this method info has a deprecated attribute, false otherwise
      Siehe auch:
    • isSynthetic

      public boolean isSynthetic()
      Beschreibung aus Schnittstelle kopiert: IMethodInfo
      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.

      Angegeben von:
      isSynthetic in Schnittstelle IMethodInfo
      Gibt zurück:
      true if the method info is synthetic according to the JVM specification, false otherwise
      Siehe auch: