All Implemented Interfaces:
IDestructable, INdStruct, org.eclipse.core.runtime.IAdaptable

public class NdMethod extends NdBinding
  • Field Details

  • Constructor Details

    • NdMethod

      public NdMethod(Nd nd, long address)
  • Method Details

    • createNewParameter

      public NdMethodParameter createNewParameter()
    • allocateParameters

      public void allocateParameters(int numParameters)
    • getMethodName

      public IString getMethodName()
    • setMethodName

      public void setMethodName(char[] selectorAndDescriptor)
    • getParameterNames

      public char[][] getParameterNames()
      Returns method parameter names that were not defined by the compiler.
    • getMethodParameters

      public List<NdMethodParameter> getMethodParameters()
    • getAnnotations

      public List<NdAnnotation> getAnnotations()
    • setDefaultValue

      public void setDefaultValue(NdConstant value)
    • getDefaultValue

      public NdConstant getDefaultValue()
    • setReturnType

      public void setReturnType(NdTypeSignature createTypeSignature)
    • getTypeAnnotations

      public List<NdTypeAnnotation> getTypeAnnotations()
    • getExceptions

      public List<NdMethodException> getExceptions()
    • getReturnType

      public NdTypeSignature getReturnType()
      Returns the return type for this method or null if the method returns void
    • getFlags

      public int getFlags()
    • hasAllFlags

      public boolean hasAllFlags(int flags)
    • setFlags

      public void setFlags(int flags)
    • setTagBits

      public void setTagBits(long bits)
    • getTagBits

      public long getTagBits()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSelector

      public char[] getSelector()
    • isConstructor

      public boolean isConstructor()
    • isClInit

      public boolean isClInit()
    • getGenericSignature

      public void getGenericSignature(CharArrayBuffer result, boolean includeExceptions)
    • createAnnotationData

      public NdMethodAnnotationData createAnnotationData()
      Creates the NdMethodAnnotationData struct for this method if it does not already exist. Returns the existing or newly-created struct.
    • createException

      public NdMethodException createException(NdTypeSignature createTypeSignature)
    • allocateExceptions

      public void allocateExceptions(int length)
    • createAnnotation

      public NdAnnotation createAnnotation()
    • createTypeAnnotation

      public NdTypeAnnotation createTypeAnnotation()
    • allocateAnnotations

      public void allocateAnnotations(int length)
    • allocateTypeAnnotations

      public void allocateTypeAnnotations(int length)
    • setDeclarationPosition

      public void setDeclarationPosition(int position)
    • getDeclarationPosition

      public int getDeclarationPosition()
      Returns the unique 0-based position of the method within the class it was declared in.
    • getMethodDescriptor

      public char[] getMethodDescriptor()