Interface IPrototypeItem

All Superinterfaces:
ICodeItem, ICodePrototype, ICodeType, INativeItem, INativeItemListenable, INativeType

@Ser public interface IPrototypeItem extends INativeType, ICodePrototype
A native prototype.

A prototype item contains return- and parameter types, calling convention, as well as other calling convention attributes.

Note: a reference-item to a prototype-item is a function-pointer type.

  • Method Details

    • getCountOfReturns

      int getCountOfReturns()
    • getReturnType

      INativeType getReturnType()
      Specified by:
      getReturnType in interface ICodePrototype
      Returns:
      the return type, never null
    • getReturnTypes

      List<? extends INativeType> getReturnTypes()
    • getCountOfParameters

      int getCountOfParameters()
    • getParameterTypes

      List<? extends INativeType> getParameterTypes()
      Specified by:
      getParameterTypes in interface ICodePrototype
      Returns:
      list of parameters, possibly empty, never null
    • getParameterNames

      List<String> getParameterNames()
      Returns:
      optional parameter names, if they were provided with the prototype
    • getRoutineName

      String getRoutineName()
      Returns:
      optional routine name, if it was provided with the prototype
    • getCallingConvention

      ICallingConvention getCallingConvention()
      Retrieve the optional calling convention associated with the prototype.
      Returns:
    • getPrototypeAttributes

      Collection<PrototypeAttribute> getPrototypeAttributes()
      Retrieve the prototype attributes.
      Returns:
      prototype attributes, never null
    • isNoReturn

      boolean isNoReturn()
      Convenience method.
      Returns: