Module suggest

Class MethodSymbol

All Implemented Interfaces:
Member, MemberSymbol, Scope, Symbol, SymbolWithModifiers, TypedSymbol
Direct Known Subclasses:
MethodSymbolImport

public class MethodSymbol extends FunctionSymbol implements MemberSymbol
A method symbol is a function that lives within an aggregate/class and has a slot number.
  • Field Details

    • slot

      protected int slot
  • Constructor Details

    • MethodSymbol

      public MethodSymbol(String name)
  • Method Details

    • getSlotNumber

      public int getSlotNumber()
      Specified by:
      getSlotNumber in interface MemberSymbol
    • getParameters

      public Collection<Symbol> getParameters()
    • getParameter

      public ParameterSymbol getParameter(int i)
      Get the parameter with at the index of insertion.
    • accept

      public boolean accept(int flags)
      Description copied from interface: Symbol
      Does the symbol match the flags? only used for XL flag now.
      Specified by:
      accept in interface Symbol
    • match

      public boolean match(MethodSymbol m)
      check if the given methodsymbol has the same set of parameters/ name/ and return value. List are not ordered so there is not reason the getparam provide the same order. Which will still provide true.... TODO: check the order of the parameters as well
    • match

      public boolean match(Method m)