Class MemberDescriptor

java.lang.Object
ortus.boxlang.runtime.bifs.MemberDescriptor

public class MemberDescriptor extends Object
This describes a member method and how to invoke it
  • Field Details

    • name

      public final Key name
      The name of the member method : "insert", "update", "delete", etc
    • type

      public final BoxLangType type
      The type this method can be attached to. BoxLangType
    • customClass

      public final Class<?> customClass
    • objectArgument

      public final Key objectArgument
      The name of the argument that is the object this method is attached to When calling BIFS. This is the first argument by default.
    • BIFDescriptor

      public final BIFDescriptor BIFDescriptor
      The BIFDescriptor that describes how to invoke this method
  • Constructor Details

    • MemberDescriptor

      public MemberDescriptor(Key name, BoxLangType type, Class<?> customClass, Key objectArgument, BIFDescriptor BIFDescriptor)
      Constructor for a member method
      Parameters:
      name - The name of the member method
      type - The type this method can be attached to
      objectArgument - The name of the argument that is the object this method is attached to
      BIFDescriptor - The BIFDescriptor that describes how to invoke this method
  • Method Details

    • invoke

      public Object invoke(IBoxContext context, Object object)
      Invoke the BIF with no arguments
      Parameters:
      context - The context to invoke the BIF in
      object - The object to invoke the BIF on
      Returns:
      The result of the invocation
    • invoke

      public Object invoke(IBoxContext context, Object object, Object[] positionalArguments)
      Invoke the BIF with positional arguments
      Parameters:
      context - The context to invoke the BIF in
      object - The object to invoke the BIF on
      positionalArguments - The positional arguments to pass to the BIF
      Returns:
      The result of the invocation
    • invoke

      public Object invoke(IBoxContext context, Object object, Map<Key,Object> namedArguments)
      Invoke the BIF with named arguments
      Parameters:
      context - The context to invoke the BIF in
      object - The object to invoke the BIF on
      namedArguments - The named arguments to pass to the BIF
      Returns:
      The result of the invocation