Package ortus.boxlang.runtime.bifs
Class MemberDescriptor
java.lang.Object
ortus.boxlang.runtime.bifs.MemberDescriptor
This describes a member method and how to invoke it
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BIFDescriptor
The BIFDescriptor that describes how to invoke this methodfinal Class
<?> final Key
The name of the member method : "insert", "update", "delete", etcfinal Key
The name of the argument that is the object this method is attached to When calling BIFS.final BoxLangType
The type this method can be attached to. -
Constructor Summary
ConstructorsConstructorDescriptionMemberDescriptor
(Key name, BoxLangType type, Class<?> customClass, Key objectArgument, BIFDescriptor BIFDescriptor) Constructor for a member method -
Method Summary
Modifier and TypeMethodDescriptioninvoke
(IBoxContext context, Object object) Invoke the BIF with no argumentsinvoke
(IBoxContext context, Object object, Object[] positionalArguments) Invoke the BIF with positional argumentsInvoke the BIF with named arguments
-
Field Details
-
name
The name of the member method : "insert", "update", "delete", etc -
type
The type this method can be attached to.BoxLangType
-
customClass
-
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
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 methodtype
- The type this method can be attached toobjectArgument
- The name of the argument that is the object this method is attached toBIFDescriptor
- The BIFDescriptor that describes how to invoke this method
-
-
Method Details
-
invoke
Invoke the BIF with no arguments- Parameters:
context
- The context to invoke the BIF inobject
- The object to invoke the BIF on- Returns:
- The result of the invocation
-
invoke
Invoke the BIF with positional arguments- Parameters:
context
- The context to invoke the BIF inobject
- The object to invoke the BIF onpositionalArguments
- The positional arguments to pass to the BIF- Returns:
- The result of the invocation
-
invoke
Invoke the BIF with named arguments- Parameters:
context
- The context to invoke the BIF inobject
- The object to invoke the BIF onnamedArguments
- The named arguments to pass to the BIF- Returns:
- The result of the invocation
-